diff options
Diffstat (limited to 'gs/src/zcspixel.c')
-rw-r--r-- | gs/src/zcspixel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gs/src/zcspixel.c b/gs/src/zcspixel.c index 54e1b52c3..3dbb68957 100644 --- a/gs/src/zcspixel.c +++ b/gs/src/zcspixel.c @@ -23,6 +23,7 @@ #include "gsmatrix.h" /* for gscolor2.h */ #include "gscolor2.h" #include "gscpixel.h" +#include "ialloc.h" /* <array> .setdevicepixelspace - */ private int @@ -36,9 +37,9 @@ zsetdevicepixelspace(i_ctx_t *i_ctx_p) check_read_type(*op, t_array); if (r_size(op) != 2) return_error(e_rangecheck); - array_get(op, 1L, &depth); + array_get(imemory, op, 1L, &depth); check_type_only(depth, t_integer); - code = gs_cspace_init_DevicePixel(&cs, (int)depth.value.intval); + code = gs_cspace_init_DevicePixel(imemory, &cs, (int)depth.value.intval); if (code < 0) return code; code = gs_setcolorspace(igs, &cs); |