From 0eec3d6d4ffbcfefd9593298530632c8ccf90760 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 29 Dec 2002 20:02:46 +0000 Subject: [project @ 2002-12-29 20:02:46 by bursa] Fix redraw problems svn path=/import/netsurf/; revision=70 --- riscos/gui.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/riscos/gui.c b/riscos/gui.c index 8faec76c3..45b9ae8b5 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.8 2002/12/27 21:09:15 bursa Exp $ + * $Id: gui.c,v 1.9 2002/12/29 20:02:46 bursa Exp $ */ #include "netsurf/riscos/font.h" @@ -480,10 +480,10 @@ void ro_gui_window_redraw_box(gui_window* g, struct box * box, signed long x, si break; } - if (x + box->x*2 + box->width*2 /* right edge */ >= clip->x0 && - x + box->x*2 /* left edge */ <= clip->x1 && - y - box->y*2 - box->height*2 - 8 /* bottom edge */ <= clip->y1 && - y - box->y*2 /* top edge */ >= clip->y0) + if (x + (signed long) (box->x*2 + box->width*2) /* right edge */ >= clip->x0 && + x + (signed long) (box->x*2) /* left edge */ <= clip->x1 && + y - (signed long) (box->y*2 + box->height*2 + 8) /* bottom edge */ <= clip->y1 && + y - (signed long) (box->y*2) /* top edge */ >= clip->y0) { #ifdef FANCY_LINKS -- cgit v1.2.3