Expand the damaged area rectangle by one pixel each side to stop missing lines

This commit is contained in:
Chris Young 2013-01-13 19:11:48 +00:00
parent e7ef916b53
commit 8625933812

View File

@ -3885,13 +3885,13 @@ void ami_refresh_window(struct gui_window_2 *gwin)
BeginRefresh(gwin->win); BeginRefresh(gwin->win);
x0 = ((gwin->win->RPort->Layer->DamageList->bounds.MinX - bbox->Left) / 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) / 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) / 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) / 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; regrect = gwin->win->RPort->Layer->DamageList->RegionRectangle;
@ -3900,13 +3900,13 @@ void ami_refresh_window(struct gui_window_2 *gwin)
while(regrect) while(regrect)
{ {
x0 = ((regrect->bounds.MinX - bbox->Left) / 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) / 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) / 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) / y1 = ((regrect->bounds.MaxY - bbox->Top) /
browser_window_get_scale(gwin->bw)) + sy; browser_window_get_scale(gwin->bw)) + sy + 2;
regrect = regrect->Next; regrect = regrect->Next;