[project @ 2006-01-24 23:41:23 by rjw]

Tidy up code.

svn path=/import/netsurf/; revision=2033
This commit is contained in:
Richard Wilson 2006-01-24 23:41:23 +00:00
parent 66d21f9c01
commit 5157c9c280

View File

@ -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,