summaryrefslogtreecommitdiff
path: root/amiga/bitmap.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-25 18:48:49 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-01-25 18:48:49 +0000
commit6eb0bd45799853d039d3e3ca8f61f7d4f428ce67 (patch)
tree28f0c919c81fe1ca4307b8e8f149726375193bc5 /amiga/bitmap.c
parent1ea29c6aec03e0d6e9325910998e16910170fafa (diff)
downloadnetsurf-6eb0bd45799853d039d3e3ca8f61f7d4f428ce67.tar.gz
netsurf-6eb0bd45799853d039d3e3ca8f61f7d4f428ce67.tar.bz2
Remove unneeded pen list
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r--amiga/bitmap.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index c57fb8f20..b98d95f5a 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -558,8 +558,6 @@ struct BitMap *ami_bitmap_get_native(struct bitmap *bitmap,
static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
{
-// if(ami_plot_screen_is_palettemapped() == true) return NSERROR_OK;
-
struct redraw_context ctx = {
.interactive = false,
.background_images = true,
@@ -570,14 +568,13 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
int plot_height;
struct gui_globals bm_globals;
struct gui_globals *temp_gg = glob;
-// struct MinList *shared_pens = ami_AllocMinList();
plot_width = MIN(content_get_width(content), bitmap->width);
plot_height = ((plot_width * bitmap->height) + (bitmap->width / 2)) /
bitmap->width;
ami_init_layers(&bm_globals, bitmap->width, bitmap->height, true);
-// bm_globals.shared_pens = shared_pens;
+ bm_globals.shared_pens = NULL;
glob = &bm_globals;
ami_clearclipreg(&bm_globals);
@@ -600,15 +597,13 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
ami_bitmap_argb_to_rgba(bitmap);
#else
-#warning FIXME for OS3
+#warning FIXME for OS3 (in current state none of bitmap_render can work!)
#endif
/**\todo In theory we should be able to move the bitmap to our native area
to try to avoid re-conversion (at the expense of memory) */
ami_free_layers(&bm_globals);
-// ami_plot_release_pens(shared_pens);
-// FreeVec(shared_pens);
amiga_bitmap_set_opaque(bitmap, true);
/* Restore previous render area. This is set when plotting starts,