diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-02-17 08:41:35 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-02-17 08:41:35 +0000 |
commit | 77cea4c016ed732551b4b94fc5c452180a894123 (patch) | |
tree | 73c4ebafd79c155c763829277f5255212c36f6d1 /Build/source/texk/dvipdfm-x/spc_tpic.c | |
parent | 9c6def6021823454892b24da379284c7487992d9 (diff) |
dvipdfm-x version 20180217: Accept PDF version tag 2.0. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@46658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_tpic.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_tpic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/spc_tpic.c b/Build/source/texk/dvipdfm-x/spc_tpic.c index 4fc80ddd78f..f4c9c99c752 100644 --- a/Build/source/texk/dvipdfm-x/spc_tpic.c +++ b/Build/source/texk/dvipdfm-x/spc_tpic.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2016 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -763,7 +763,8 @@ spc_handler_tpic__init (struct spc_env *spe, void *dp) tp->num_points = 0; tp->max_points = 0; - if (tp->mode.fill != TPIC_MODE__FILL_SOLID && pdf_get_version() < 4) { + if (tp->mode.fill != TPIC_MODE__FILL_SOLID && + pdf_check_version(1, 4) < 0) { spc_warn(spe, "Tpic shading support requires PDF version 1.4."); tp->mode.fill = TPIC_MODE__FILL_SOLID; } @@ -957,7 +958,7 @@ spc_handler_tpic__setopts (struct spc_env *spe, error = pdf_foreach_dict(dict, tpic_filter_getopts, tp); if (!error) { if (tp->mode.fill != TPIC_MODE__FILL_SOLID && - pdf_get_version() < 4) { + pdf_check_version(1, 4) < 0) { spc_warn(spe, "Transparent fill mode requires PDF version 1.4."); tp->mode.fill = TPIC_MODE__FILL_SOLID; } @@ -1115,4 +1116,3 @@ spc_load_tpic_special (struct spc_env *spe, pdf_obj *lopts) return 0; } #endif /* 0 */ - |