mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 08:50:02 +03:00
[project @ 2006-01-24 23:02:44 by rjw]
Stop failed decompression/loading from attempting to plot a NULL bitmap. svn path=/import/netsurf/; revision=2026
This commit is contained in:
parent
15a14599db
commit
2b2b2ccf96
@ -49,6 +49,11 @@ bool image_redraw(osspriteop_area *area, int x, int y, int req_width,
|
||||
bool repeatx, bool repeaty, bool background, image_type type)
|
||||
{
|
||||
unsigned int tinct_options;
|
||||
|
||||
/* failed decompression/loading can result in no image being present */
|
||||
if (!area)
|
||||
return false;
|
||||
|
||||
osspriteop_id header = (osspriteop_id)
|
||||
((char*) area + area->first);
|
||||
req_width *= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user