From 511d66331f68815396aac6012d6787a5c1774d51 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 17 Oct 2004 21:16:00 +0000 Subject: [project @ 2004-10-17 21:16:00 by bursa] Move to use plotters. Replace html.layout->children with html.layout. svn path=/import/netsurf/; revision=1318 --- riscos/bitmap.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'riscos/bitmap.c') diff --git a/riscos/bitmap.c b/riscos/bitmap.c index b758e82e7..1fad86ff9 100644 --- a/riscos/bitmap.c +++ b/riscos/bitmap.c @@ -39,7 +39,7 @@ struct bitmap *bitmap_create(int width, int height) osspriteop_area *sprite_area; osspriteop_header *sprite; - if ((width == 0) || (height == 0)) + if (width == 0 || height == 0) return NULL; area_size = 16 + 44 + width * height * 4; @@ -47,6 +47,10 @@ struct bitmap *bitmap_create(int width, int height) if (!bitmap) return NULL; + bitmap->width = width; + bitmap->height = height; + bitmap->opaque = false; + /* area control block */ sprite_area = &bitmap->sprite_area; sprite_area->size = area_size; @@ -150,22 +154,6 @@ void bitmap_destroy(struct bitmap *bitmap) } -/** - * Render a bitmap. - */ - -bool bitmap_redraw(struct content *c, int x, int y, - int width, int height, - int clip_x0, int clip_y0, int clip_x1, int clip_y1, - float scale, unsigned long background_colour) -{ - return image_redraw(&(c->bitmap->sprite_area), x, y, width, height, - c->width * 2, c->height * 2, background_colour, - false, false, ((c->bitmap->opaque) ? - IMAGE_PLOT_TINCT_OPAQUE : IMAGE_PLOT_TINCT_ALPHA)); -} - - /** * Save a bitmap in the platform's native format. * -- cgit v1.2.3