From 26cee820f1bc3a632288edcf4adb98d237ab0d02 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 30 Jun 2009 13:16:29 +0000 Subject: Simplify RISC OS bitmap plotter. svn path=/trunk/netsurf/; revision=8196 --- riscos/plotters.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'riscos') diff --git a/riscos/plotters.c b/riscos/plotters.c index 2ec82b55a..63a44bf26 100644 --- a/riscos/plotters.c +++ b/riscos/plotters.c @@ -499,8 +499,6 @@ bool ro_plot_bitmap(int x, int y, int width, int height, bitmap_flags_t flags) { const uint8_t *buffer; - bool repeat_x = (flags & BITMAPF_REPEAT_X); - bool repeat_y = (flags & BITMAPF_REPEAT_Y); buffer = bitmap_get_buffer(bitmap); if (!buffer) { @@ -508,7 +506,6 @@ bool ro_plot_bitmap(int x, int y, int width, int height, return false; } - if (!(repeat_x || repeat_y)) { return image_redraw(bitmap->sprite_area, ro_plot_origin_x + x * 2, ro_plot_origin_y - y * 2, @@ -516,19 +513,8 @@ bool ro_plot_bitmap(int x, int y, int width, int height, bitmap->width, bitmap->height, bg, - false, false, false, - bitmap_get_opaque(bitmap) ? IMAGE_PLOT_TINCT_OPAQUE : - IMAGE_PLOT_TINCT_ALPHA); - } - - return image_redraw(bitmap->sprite_area, - ro_plot_origin_x + x * 2, - ro_plot_origin_y - y * 2, - width, height, - bitmap->width, - bitmap->height, - bg, - repeat_x, repeat_y, true, + flags & BITMAPF_REPEAT_X, flags & BITMAPF_REPEAT_Y, + flags & BITMAPF_REPEAT_X || flags & BITMAPF_REPEAT_Y, bitmap_get_opaque(bitmap) ? IMAGE_PLOT_TINCT_OPAQUE : IMAGE_PLOT_TINCT_ALPHA); } -- cgit v1.2.3