summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-04-15 00:36:57 +0200
committerOle Loots <ole@monochrom.net>2013-04-15 00:36:57 +0200
commit0d976df9f34cb290c96e7b8b2e5d2bdc12000213 (patch)
tree0dd8ddd573dfe501018146f3898acfd746d68024 /atari
parentd9b8809908be8d25b4a301529725e1df65bb610b (diff)
downloadnetsurf-0d976df9f34cb290c96e7b8b2e5d2bdc12000213.tar.gz
netsurf-0d976df9f34cb290c96e7b8b2e5d2bdc12000213.tar.bz2
Properly handle return value of rc_intersect()
Fixes some redraw glitches.
Diffstat (limited to 'atari')
-rwxr-xr-xatari/rootwin.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index a91d99099..03df72723 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -1061,6 +1061,8 @@ void window_process_redraws(ROOTWIN * rootwin)
wind_get_grect(rootwin->aes_handle, WF_FIRSTXYWH, &visible_ro);
while (visible_ro.g_w > 0 && visible_ro.g_h > 0) {
+ //dbg_grect("visible ", &visible_ro);
+
// TODO: optimze the rectangle list -
// remove rectangles which were completly inside the visible area.
// that way we don't have to loop over again...
@@ -1074,7 +1076,10 @@ void window_process_redraws(ROOTWIN * rootwin)
rootwin->redraw_slots.areas[i].y1 -
rootwin->redraw_slots.areas[i].y0
};
- rc_intersect(&visible_ro, &rdrw_area_ro);
+
+ if (!rc_intersect(&visible_ro, &rdrw_area_ro)) {
+ continue;
+ }
GRECT rdrw_area = rdrw_area_ro;
if (rc_intersect(&tb_area, &rdrw_area)) {