diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-04-25 13:13:30 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-04-25 13:13:30 +0100 |
commit | c8caf08ef16297379754d4a70e80cef3a0fde820 (patch) | |
tree | b3622ee7aa25696331d0c74814499a0aa54e138d /amiga/plotters.c | |
parent | 5b5e621c7ac1bedc8c153b8ab99d47224b537497 (diff) | |
download | netsurf-c8caf08ef16297379754d4a70e80cef3a0fde820.tar.gz netsurf-c8caf08ef16297379754d4a70e80cef3a0fde820.tar.bz2 |
As the content interface is now doing the scaling, we render to a native BitMap and then copy that to the RGBA32 bitmap buffer without re-scaling.
The native BitMap is currently discarded and will be re-created when it is displayed.
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r-- | amiga/plotters.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 4c86f3160..fa5f661d4 100644 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -115,6 +115,8 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height) if(!width) width = nsoption_int(redraw_tile_size_x); if(!height) height = nsoption_int(redraw_tile_size_y); + gg->width = width; + gg->height = height; gg->layerinfo = NewLayerInfo(); gg->areabuf = AllocVecTagList(AREA_SIZE, NULL); @@ -177,9 +179,9 @@ void ami_free_layers(struct gui_globals *gg) FreeVec(gg->areabuf); DisposeLayerInfo(gg->layerinfo); if(palette_mapped == false) { - ami_rtg_freebitmap(gg->bm); + if(gg->bm) ami_rtg_freebitmap(gg->bm); } else { - FreeBitMap(gg->bm); + if(gg->bm) FreeBitMap(gg->bm); } } |