diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-04-13 12:15:42 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-04-13 12:15:42 +0000 |
commit | 9f0910ad2802d07078594348b055abd5ebdecd6f (patch) | |
tree | dc22dc5665fd1870a91519b6a5af12bcbb2124fc /gs/base/gxht.h | |
parent | 7bbf473165e1a7aa2bd4c2ce39acef872c1abc4d (diff) |
Move global variables from gshtscr.c (screen_accurate_screens,
screen_min_screen_levels, screen_use_wts) into libctx. This has
meant updating the functions to read/write these to take a
gs_memory_t pointer too. Part of the efforts for bug 691207.
No differences shown by localcluster testing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11058 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gxht.h')
-rw-r--r-- | gs/base/gxht.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/gs/base/gxht.h b/gs/base/gxht.h index f5b026cd2..ee540004c 100644 --- a/gs/base/gxht.h +++ b/gs/base/gxht.h @@ -1,6 +1,6 @@ /* Copyright (C) 2001-2006 Artifex Software, Inc. All Rights Reserved. - + This software is provided AS-IS with no warranty, either express or implied. @@ -49,7 +49,7 @@ * and this holds true for the graphic library as well. * * Note also that implementing a generalized halftone cache is not trivial, - * as the device-specific representation of spot halftones depends on the + * as the device-specific representation of spot halftones depends on the * default transformation for the device, and more generally the device * specific representation of halftones may depend on the sense of the device * (additive or subtract). Hence, a halftone cache would need to be keyed @@ -206,16 +206,15 @@ extern_st(st_halftone); /* * Set/get the default AccurateScreens value (for set[color]screen). - * Note that this value is stored in a static variable. */ -void gs_setaccuratescreens(bool); -bool gs_currentaccuratescreens(void); +void gs_setaccuratescreens(gs_memory_t *, bool); +bool gs_currentaccuratescreens(gs_memory_t *); /* - * Set/get the value for UseWTS. Also a static, but it's going away. + * Set/get the value for UseWTS. */ -void gs_setusewts(bool); -bool gs_currentusewts(void); +void gs_setusewts(gs_memory_t *, bool); +bool gs_currentusewts(gs_memory_t *); /* Initiate screen sampling with optional AccurateScreens. */ int gs_screen_init_memory(gs_screen_enum *, gs_state *, @@ -228,10 +227,8 @@ int gs_screen_init_memory(gs_screen_enum *, gs_state *, /* * Set/get the MinScreenLevels value. - * - * Note that this value is stored in a static variable. */ -void gs_setminscreenlevels(uint); -uint gs_currentminscreenlevels(void); +void gs_setminscreenlevels(gs_memory_t *, uint); +uint gs_currentminscreenlevels(gs_memory_t *); #endif /* gxht_INCLUDED */ |