Fix logic in the rare case we're running 8-bit and have a cached full-size native BitMap but need a scaled one.

This commit is contained in:
Chris Young 2016-07-08 23:53:01 +01:00
parent d39f98065a
commit 39dcd22b05

View File

@ -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;