mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
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:
parent
d39f98065a
commit
39dcd22b05
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user