diff options
Diffstat (limited to 'riscos/bitmap.c')
-rw-r--r-- | riscos/bitmap.c | 22 |
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()
|