summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 14:44:16 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 14:44:16 +0000
commit2bf6bd72b8798d8363d451430cdb5439bb560d5a (patch)
tree4c783bdb73b16be3080ea83060a1602fbac1cae1 /amiga
parent3179a891d609ce5be3f25fda7696e33446159e61 (diff)
downloadnetsurf-2bf6bd72b8798d8363d451430cdb5439bb560d5a.tar.gz
netsurf-2bf6bd72b8798d8363d451430cdb5439bb560d5a.tar.bz2
Remove some checks before redraw, as they only seem to achieve stopping redraws
happening when we need them. svn path=/trunk/netsurf/; revision=6969
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index c1deb72fa..0339f9fdc 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2151,12 +2151,13 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0
yoffset=bbox->Top;
plot=amiplot;
+/*
+DebugPrintF("%ld %ld %ld %ld old\n%ld %ld %ld %ld x0-xc etc\n",x0,y0,x1,y1,x0-hcurrent,y0-vcurrent,width+x0,height+y0);
+DebugPrintF("%ld %ld calc\n",(y1-y0)+(yoffset+y0-vcurrent),(y0-(int)vcurrent));
-//DebugPrintF("%ld %ld %ld %ld old\n%ld %ld %ld %ld x0-xc etc\n",x0,y0,x1,y1,x0-hcurrent,y0-vcurrent,width+x0,height+y0);
-
- if(((y1-y0)+(yoffset+y0-vcurrent)<0) || ((y0-(int)vcurrent)>height)) return;
- if(((x1-x0)+(xoffset+x0-hcurrent)<0) || ((x0-(int)hcurrent)>width)) return;
-
+ if((((y1-y0)+(yoffset+y0-vcurrent))<0) || ((y0-(int)vcurrent)>height)) return;
+ if((((x1-x0)+(xoffset+x0-hcurrent))<0) || ((x0-(int)hcurrent)>width)) return;
+*/
if((x0-(int)hcurrent)<0) x0 = hcurrent;
if((y0-(int)vcurrent)<0) y0 = vcurrent;
@@ -2184,7 +2185,6 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0
BltBitMapRastPort(glob.bm,x0-hcurrent,y0-vcurrent,g->shared->win->RPort,xoffset+x0-hcurrent,yoffset+y0-vcurrent,x1-x0,y1-y0,0x0C0);
-/*
DebugPrintF("%ld %ld %ld %ld draw area\n%ld %ld %ld %ld clip rect\n%ld %ld bitmap src\n%ld %ld %ld %ld bitmap dest\n\n",-hcurrent,-vcurrent,width-hcurrent,height-vcurrent,
(ULONG)floorf((x0 *
g->shared->bw->scale)-(int)hcurrent),
@@ -2192,7 +2192,7 @@ void ami_do_redraw_limits(struct gui_window *g, struct content *c,int x0, int y0
g->shared->bw->scale)-(int)vcurrent),
(ULONG)x1-hcurrent,
(ULONG)y1-vcurrent,x0-hcurrent,y0-vcurrent,xoffset+x0-hcurrent,yoffset+y0-vcurrent,x1-x0,y1-y0);
-*/
+
}
void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1)