mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Fix the caching logic now we've moved 8-bit scaling earlier in the code
This commit is contained in:
parent
ddcc914a3f
commit
d39f98065a
@ -463,8 +463,10 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap,
|
||||
}
|
||||
}
|
||||
|
||||
if(nsoption_int(cache_bitmaps) == 2)
|
||||
{
|
||||
if(((type == AMI_NSBM_TRUECOLOUR) && (nsoption_int(cache_bitmaps) == 2)) ||
|
||||
((type == AMI_NSBM_PALETTEMAPPED) && (((bitmap->width == width) &&
|
||||
(bitmap->height == height) && (nsoption_int(cache_bitmaps) == 2)) ||
|
||||
(nsoption_int(cache_bitmaps) >= 1)))) {
|
||||
bitmap->nativebm = tbm;
|
||||
if(type == AMI_NSBM_TRUECOLOUR) {
|
||||
bitmap->nativebmwidth = bitmap->width;
|
||||
|
Loading…
Reference in New Issue
Block a user