diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-09-27 11:19:24 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-10-20 18:22:47 +0200 |
commit | cc6be9c3577168805ec34b2d396e63361012282b (patch) | |
tree | 7dc794b08a1a6a786d540516c623cb1eebfb1863 /base/gdevm24.c | |
parent | Import Ghostscript 9.54 (diff) | |
download | ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.gz ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.bz2 ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.zip |
Import Ghostscript 9.55ghostscript-9.55
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'base/gdevm24.c')
-rw-r--r-- | base/gdevm24.c | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/base/gdevm24.c b/base/gdevm24.c index 332279b6..913f0028 100644 --- a/base/gdevm24.c +++ b/base/gdevm24.c @@ -20,7 +20,7 @@ #include "gxdevmem.h" /* semi-public definitions */ #include "gdevmem.h" /* private definitions */ -#define mem_true24_strip_copy_rop mem_gray8_rgb24_strip_copy_rop +#define mem_true24_strip_copy_rop2 mem_gray8_rgb24_strip_copy_rop2 /* * Define whether to use the library's memset. @@ -58,12 +58,20 @@ static dev_proc_copy_alpha(mem_true24_copy_alpha); /* The device descriptor. */ const gx_device_memory mem_true24_device = -mem_full_alpha_device("image24", 24, 0, mem_open, - gx_default_rgb_map_rgb_color, gx_default_rgb_map_color_rgb, - mem_true24_copy_mono, mem_true24_copy_color, mem_true24_fill_rectangle, - gx_default_map_cmyk_color, mem_true24_copy_alpha, - gx_default_strip_tile_rectangle, mem_true24_strip_copy_rop, - mem_get_bits_rectangle); + mem_device("image24", 24, 0, mem_dev_initialize_device_procs); + +const gdev_mem_functions gdev_mem_fns_24 = +{ + gx_default_rgb_map_rgb_color, + gx_default_rgb_map_color_rgb, + mem_true24_fill_rectangle, + mem_true24_copy_mono, + mem_true24_copy_color, + mem_true24_copy_alpha, + gx_default_strip_tile_rectangle, + mem_true24_strip_copy_rop2, + mem_get_bits_rectangle +}; /* Convert x coordinate to byte offset in scan line. */ #undef x_to_byte @@ -551,11 +559,20 @@ declare_mem_procs(mem24_word_copy_mono, mem24_word_copy_color, mem24_word_fill_r /* Here is the device descriptor. */ const gx_device_memory mem_true24_word_device = -mem_full_device("image24w", 24, 0, mem_open, - gx_default_rgb_map_rgb_color, gx_default_rgb_map_color_rgb, - mem24_word_copy_mono, mem24_word_copy_color, mem24_word_fill_rectangle, - gx_default_map_cmyk_color, gx_default_strip_tile_rectangle, - gx_no_strip_copy_rop, mem_word_get_bits_rectangle); + mem_device("image24w", 24, 0, mem_word_dev_initialize_device_procs); + +const gdev_mem_functions gdev_mem_fns_24w = +{ + gx_default_rgb_map_rgb_color, + gx_default_rgb_map_color_rgb, + mem24_word_fill_rectangle, + mem24_word_copy_mono, + mem24_word_copy_color, + gx_default_copy_alpha, + gx_default_strip_tile_rectangle, + gx_no_strip_copy_rop2, + mem_word_get_bits_rectangle +}; /* Fill a rectangle with a color. */ static int |