mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 13:51:46 +03:00
stop SDL faulting with bad os redraw values
svn path=/trunk/netsurf/; revision=6792
This commit is contained in:
parent
e37b214e10
commit
6e9618484e
@ -207,9 +207,20 @@ fb_os_option_override(void)
|
||||
void
|
||||
fb_os_redraw(struct bbox_s *box)
|
||||
{
|
||||
/*LOG(("%d,%d-%d,%d %d,%d", box->x0, box->y0,
|
||||
box->x1, box->y1 ,
|
||||
box->x1 - box->x0, box->y1 - box->y0));*/
|
||||
|
||||
if ((box->y1 - box->y0) < 0) {
|
||||
LOG(("WTF happened"));
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_UpdateRect(sdl_screen,
|
||||
box->x0, box->y0,
|
||||
box->x1 - box->x0, box->y1 - box->y0);
|
||||
box->x0,
|
||||
box->y0,
|
||||
box->x1 - box->x0,
|
||||
box->y1 - box->y0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user