[gs-cvs] rev 7177 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Wed Nov 8 05:36:18 PST 2006
Author: leonardo
Date: 2006-11-08 05:36:18 -0800 (Wed, 08 Nov 2006)
New Revision: 7177
Modified:
trunk/gs/src/gsccolor.h
Log:
Fix : Rearrange gs_client_color_s to allow saving RAM from color components.
DETAILS :
This is a preparation for fixing the bug 688955 "64K stack overflows with shadings".
See comments in cope.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gsccolor.h
===================================================================
--- trunk/gs/src/gsccolor.h 2006-11-08 12:55:36 UTC (rev 7176)
+++ trunk/gs/src/gsccolor.h 2006-11-08 13:36:18 UTC (rev 7177)
@@ -36,6 +36,9 @@
/* Paint (non-Pattern) colors */
typedef struct gs_paint_color_s {
float values[GS_CLIENT_COLOR_MAX_COMPONENTS];
+ /* CAUTION: The shading decomposition algorithm may allocate
+ a smaller space when a small number of color components is in use.
+ */
} gs_paint_color;
/* General colors */
@@ -45,8 +48,12 @@
#endif
struct gs_client_color_s {
+ gs_pattern_instance_t *pattern;
gs_paint_color paint; /* also color for uncolored pattern */
- gs_pattern_instance_t *pattern;
+ /* CAUTION: gs_paint_color structure must be the last field in
+ gs_client_color_s to allow allocating a smaller space when
+ a small number of color components is in use.
+ */
};
extern_st(st_client_color);
More information about the gs-cvs
mailing list