From 5157c9c280ca1fc1d66d0b4828d828ace9b9d630 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 24 Jan 2006 23:41:23 +0000 Subject: [PATCH] [project @ 2006-01-24 23:41:23 by rjw] Tidy up code. svn path=/import/netsurf/; revision=2033 --- riscos/plotters.c | 14 +++++++++----- 1 file 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 */ @@ -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,