diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-08 23:53:01 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-08 23:53:01 +0100 |
commit | 39dcd22b05342e639c587de8e1af382e7dee2454 (patch) | |
tree | bf6ef01c110f2af531752fd2e1adb108029e1dab /frontends/amiga/bitmap.c | |
parent | d39f98065a7c52c63e3c037a0a64f94186c3ce00 (diff) | |
download | netsurf-39dcd22b05342e639c587de8e1af382e7dee2454.tar.gz netsurf-39dcd22b05342e639c587de8e1af382e7dee2454.tar.bz2 |
Fix logic in the rare case we're running 8-bit and have a cached full-size native BitMap but need a scaled one.
Diffstat (limited to 'frontends/amiga/bitmap.c')
-rw-r--r-- | frontends/amiga/bitmap.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |