summaryrefslogtreecommitdiff
path: root/riscos/bitmap.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-10-17 21:16:00 +0000
committerJames Bursa <james@netsurf-browser.org>2004-10-17 21:16:00 +0000
commit511d66331f68815396aac6012d6787a5c1774d51 (patch)
tree21100f5dec38b303cb051d4baa3720e9de612514 /riscos/bitmap.c
parentddaf4ab4d7f5df81bc97a08d124e3649fd5fe700 (diff)
downloadnetsurf-511d66331f68815396aac6012d6787a5c1774d51.tar.gz
netsurf-511d66331f68815396aac6012d6787a5c1774d51.tar.bz2
[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
Diffstat (limited to 'riscos/bitmap.c')
-rw-r--r--riscos/bitmap.c22
1 files changed, 5 insertions, 17 deletions
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;
@@ -151,22 +155,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.
*
* \param bitmap a bitmap, as returned by bitmap_create()