diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2012-05-18 12:56:17 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2012-05-18 12:56:56 +0100 |
commit | 44869447f94a15ae0082b89668576636e4c39575 (patch) | |
tree | 1d9e8a033443c4812360722639534d88a8882d4f | |
parent | 1831d329606c767069dbc706632c4b30db4488ce (diff) |
txtwrite - add a 'do nothing' rop device method to avoid errors
-rw-r--r-- | gs/base/gdevtxtw.c | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/gs/base/gdevtxtw.c b/gs/base/gdevtxtw.c index 154755b37..46833c9dd 100644 --- a/gs/base/gdevtxtw.c +++ b/gs/base/gdevtxtw.c @@ -128,6 +128,8 @@ static dev_proc_put_params(txtwrite_put_params); static dev_proc_fill_path(txtwrite_fill_path); static dev_proc_stroke_path(txtwrite_stroke_path); static dev_proc_text_begin(txtwrite_text_begin); +static dev_proc_strip_copy_rop(txtwrite_strip_copy_rop); +static dev_proc_strip_copy_rop2(txtwrite_strip_copy_rop2); /* The device prototype */ #define X_DPI 72 @@ -196,9 +198,9 @@ const gx_device_txtwrite_t gs_txtwrite_device = NULL, /* image_data */ NULL, /* end_image */ NULL, /*gx_default_strip_tile_rectangle,*/ - NULL, /*gx_default_strip_copy_rop,*/ + txtwrite_strip_copy_rop, NULL, /* get_clipping_box */ - NULL, /* txtwrite_begin_typed_image */ + NULL, /* txtwrite_begin_typed_image */ NULL, /* get_bits_rectangle */ NULL, /*gx_default_map_color_rgb_alpha,*/ gx_null_create_compositor, @@ -213,7 +215,25 @@ const gx_device_txtwrite_t gs_txtwrite_device = NULL, /* get_color_mapping_procs */ NULL, /* get_color_comp_index */ NULL, /* encode_color */ - NULL /* decode_color */ + NULL, /* decode_color */ + NULL, /* pattern manager */ + NULL, /* fill_rectangle_hl_color */ + NULL, /* include_color_space */ + NULL, /* fill_linear_color_scanline */ + NULL, /* fill_linear_color_trapezoid */ + NULL, /* fill_linear_color_triangle */ + NULL, /* update_spot_equivalent_colors */ + NULL, /* ret_devn_params */ + NULL, /* fillpage */ + NULL, /* push_transparency_state */ + NULL, /* pop_transparency_state */ + NULL, /* put_image */ + NULL, /* dev_spec_op */ + NULL, /* copy_planes */ + NULL, /* get_profile */ + NULL, /* set_graphics_type_tag */ + NULL, /* strip_copy_rop2 */ + NULL /* strip_tile_rect_devn */ }, { 0 }, /* Page Data */ { 0 }, /* Output Filename */ @@ -1094,7 +1114,7 @@ txtwrite_stroke_path(gx_device * dev, const gs_imager_state * pis, gx_path * ppa return 0; } -/*static int +static int txtwrite_fill_mask(gx_device * dev, const byte * data, int dx, int raster, gx_bitmap_id id, int x, int y, int w, int h, @@ -1104,7 +1124,7 @@ txtwrite_fill_mask(gx_device * dev, return 0; } -static int +int txtwrite_begin_typed_image(gx_device * dev, const gs_imager_state * pis, const gs_matrix * pmat, const gs_image_common_t * pic, const gs_int_rect * prect, @@ -1113,7 +1133,7 @@ txtwrite_begin_typed_image(gx_device * dev, gs_memory_t * memory, gx_image_enum_common_t ** pinfo) { return 0; -}*/ +} /* ------ Text imaging ------ */ @@ -2274,3 +2294,16 @@ txtwrite_text_begin(gx_device * dev, gs_imager_state * pis, return 0; } + +static int +txtwrite_strip_copy_rop(gx_device * dev, + const byte * sdata, int sourcex, uint sraster, + gx_bitmap_id id, + const gx_color_index * scolors, + const gx_strip_bitmap * textures, + const gx_color_index * tcolors, + int x, int y, int w, int h, + int phase_x, int phase_y, gs_logical_operation_t lop) +{ + return 0; +} |