Skip trying to rle compress a paged-out bitmap
This would crash if it ever happened, so skip such bitmaps.
This commit is contained in:
parent
99e14b4100
commit
15f944b0b6
|
@ -303,6 +303,8 @@ static unsigned gr_rle_getsize(int org_size, const uint8_t *src)
|
||||||
|
|
||||||
void gr_bitmap_rle_compress(grs_bitmap &bmp)
|
void gr_bitmap_rle_compress(grs_bitmap &bmp)
|
||||||
{
|
{
|
||||||
|
if (bmp.get_flag_mask(BM_FLAG_PAGED_OUT))
|
||||||
|
return;
|
||||||
int doffset;
|
int doffset;
|
||||||
int large_rle = 0;
|
int large_rle = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue