From 39dcd22b05342e639c587de8e1af382e7dee2454 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 8 Jul 2016 23:53:01 +0100 Subject: Fix logic in the rare case we're running 8-bit and have a cached full-size native BitMap but need a scaled one. --- frontends/amiga/bitmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends/amiga/bitmap.c') diff --git a/frontends/amiga/bitmap.c b/frontends/amiga/bitmap.c index a7271f827..76dae2167 100644 --- a/frontends/amiga/bitmap.c +++ b/frontends/amiga/bitmap.c @@ -477,10 +477,12 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, } bitmap->native = type; } + + if(type == AMI_NSBM_PALETTEMAPPED) + return tbm; } - if(((bitmap->width != width) || (bitmap->height != height)) && - (type == AMI_NSBM_TRUECOLOUR)) { + if((bitmap->width != width) || (bitmap->height != height)) { struct BitMap *restrict scaledbm; struct BitScaleArgs bsa; int depth = 32; -- cgit v1.2.3