diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-01-24 23:41:23 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-01-24 23:41:23 +0000 |
commit | 5157c9c280ca1fc1d66d0b4828d828ace9b9d630 (patch) | |
tree | 35334b8ab5eb678be641f5723899746911d79cfb | |
parent | 66d21f9c0136420c650ba2cbc8c50cd826158929 (diff) | |
download | netsurf-5157c9c280ca1fc1d66d0b4828d828ace9b9d630.tar.gz netsurf-5157c9c280ca1fc1d66d0b4828d828ace9b9d630.tar.bz2 |
[project @ 2006-01-24 23:41:23 by rjw]
Tidy up code.
svn path=/import/netsurf/; revision=2033
-rw-r--r-- | riscos/plotters.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/riscos/plotters.c b/riscos/plotters.c index b1148b85a..9fcd5847d 100644 --- a/riscos/plotters.c +++ b/riscos/plotters.c @@ -1,7 +1,7 @@ /* * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, - * http://www.opensource.org/licenses/gpl-license + * http://www.opensource.org/licenses/gpl-license * Copyright 2004 James Bursa <bursa@users.sourceforge.net> */ @@ -317,8 +317,10 @@ bool ro_plot_disc(int x, int y, int radius, colour colour) bool ro_plot_bitmap(int x, int y, int width, int height, struct bitmap *bitmap, colour bg) { - bitmap_get_buffer(bitmap); - return image_redraw(bitmap->sprite_area, + char *buffer; + + buffer = bitmap_get_buffer(bitmap); + return image_redraw(buffer, ro_plot_origin_x + x * 2, ro_plot_origin_y - y * 2, width, height, @@ -335,8 +337,10 @@ bool ro_plot_bitmap_tile(int x, int y, int width, int height, struct bitmap *bitmap, colour bg, bool repeat_x, bool repeat_y) { - bitmap_get_buffer(bitmap); - return image_redraw(bitmap->sprite_area, + char *buffer; + + buffer = bitmap_get_buffer(bitmap); + return image_redraw(buffer, ro_plot_origin_x + x * 2, ro_plot_origin_y - y * 2, width, height, |