summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-01-13 19:11:48 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-01-13 19:11:48 +0000
commit8625933812a3d33261bf67cb82aad7f8075599db (patch)
treeb4e5f49d5baa620569e0cc9770e38ce4ecd6a890
parente7ef916b53510f643736e6b21cd27e896886f5bc (diff)
downloadnetsurf-8625933812a3d33261bf67cb82aad7f8075599db.tar.gz
netsurf-8625933812a3d33261bf67cb82aad7f8075599db.tar.bz2
Expand the damaged area rectangle by one pixel each side to stop missing lines
-rwxr-xr-xamiga/gui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 8494578b1..99660739c 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3885,13 +3885,13 @@ void ami_refresh_window(struct gui_window_2 *gwin)
BeginRefresh(gwin->win);
x0 = ((gwin->win->RPort->Layer->DamageList->bounds.MinX - bbox->Left) /
- browser_window_get_scale(gwin->bw)) + sx;
+ browser_window_get_scale(gwin->bw)) + sx - 1;
x1 = ((gwin->win->RPort->Layer->DamageList->bounds.MaxX - bbox->Left) /
- browser_window_get_scale(gwin->bw)) + sx;
+ browser_window_get_scale(gwin->bw)) + sx + 2;
y0 = ((gwin->win->RPort->Layer->DamageList->bounds.MinY - bbox->Top) /
- browser_window_get_scale(gwin->bw)) + sy;
+ browser_window_get_scale(gwin->bw)) + sy - 1;
y1 = ((gwin->win->RPort->Layer->DamageList->bounds.MaxY - bbox->Top) /
- browser_window_get_scale(gwin->bw)) + sy;
+ browser_window_get_scale(gwin->bw)) + sy + 2;
regrect = gwin->win->RPort->Layer->DamageList->RegionRectangle;
@@ -3900,13 +3900,13 @@ void ami_refresh_window(struct gui_window_2 *gwin)
while(regrect)
{
x0 = ((regrect->bounds.MinX - bbox->Left) /
- browser_window_get_scale(gwin->bw)) + sx;
+ browser_window_get_scale(gwin->bw)) + sx - 1;
x1 = ((regrect->bounds.MaxX - bbox->Left) /
- browser_window_get_scale(gwin->bw)) + sx;
+ browser_window_get_scale(gwin->bw)) + sx + 2;
y0 = ((regrect->bounds.MinY - bbox->Top) /
- browser_window_get_scale(gwin->bw)) + sy;
+ browser_window_get_scale(gwin->bw)) + sy - 1;
y1 = ((regrect->bounds.MaxY - bbox->Top) /
- browser_window_get_scale(gwin->bw)) + sy;
+ browser_window_get_scale(gwin->bw)) + sy + 2;
regrect = regrect->Next;