summaryrefslogtreecommitdiff
path: root/riscos/plotters.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-01-25 00:20:21 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-01-25 00:20:21 +0000
commit7354ee100880cd702dd722a2795ca1c99bdcc39d (patch)
treebdb2222b5ff47b7c5e1715941c3c36cd2df00d0f /riscos/plotters.c
parent443818ff07a1629b7f9576a1c98872b366bb6a95 (diff)
downloadnetsurf-7354ee100880cd702dd722a2795ca1c99bdcc39d.tar.gz
netsurf-7354ee100880cd702dd722a2795ca1c99bdcc39d.tar.bz2
[project @ 2006-01-25 00:20:21 by rjw]
Rescue jmb from O2 svn path=/import/netsurf/; revision=2035
Diffstat (limited to 'riscos/plotters.c')
-rw-r--r--riscos/plotters.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/riscos/plotters.c b/riscos/plotters.c
index 9fcd5847d..d59883075 100644
--- a/riscos/plotters.c
+++ b/riscos/plotters.c
@@ -317,10 +317,8 @@ 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)
{
- char *buffer;
-
- buffer = bitmap_get_buffer(bitmap);
- return image_redraw(buffer,
+ bitmap_get_buffer(bitmap);
+ return image_redraw(bitmap->sprite_area,
ro_plot_origin_x + x * 2,
ro_plot_origin_y - y * 2,
width, height,
@@ -337,11 +335,9 @@ bool ro_plot_bitmap_tile(int x, int y, int width, int height,
struct bitmap *bitmap, colour bg,
bool repeat_x, bool repeat_y)
{
- char *buffer;
-
- buffer = bitmap_get_buffer(bitmap);
- return image_redraw(buffer,
- ro_plot_origin_x + x * 2,
+ bitmap_get_buffer(bitmap);
+ return image_redraw(bitmap->sprite_area,
+ ro_plot_origin_x + x * 2,
ro_plot_origin_y - y * 2,
width, height,
bitmap->width,