diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-30 13:16:29 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-30 13:16:29 +0000 |
commit | 26cee820f1bc3a632288edcf4adb98d237ab0d02 (patch) | |
tree | 15056f722126b9e2f86de5963adbfd8ce74f2db9 | |
parent | aa2684341170424783f9937d8fe441fb3984d825 (diff) | |
download | netsurf-26cee820f1bc3a632288edcf4adb98d237ab0d02.tar.gz netsurf-26cee820f1bc3a632288edcf4adb98d237ab0d02.tar.bz2 |
Simplify RISC OS bitmap plotter.
svn path=/trunk/netsurf/; revision=8196
-rw-r--r-- | riscos/plotters.c | 18 |
1 files changed, 2 insertions, 16 deletions
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); } |