summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/spc_tpic.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_tpic.c')
-rw-r--r--Build/source/texk/dvipdfm-x/spc_tpic.c8
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 */
-