mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Avoid horizontal pixel-height lines of the background appearing when "fast scrolling"
down the page. There is a similar problem with scrolling up pages which may be a bug in ami_do_redraw_limits or plotters (probably bitmap tile plotter), as drawing additional pixel lines after scrolling is not redrawing the affected area. Example sites where this problem is apparent: http://www.nintendolife.com (border pattern does not redraw) http://www.amigaos.net/content/72/supported-hardware (clouds show through the main text area) svn path=/trunk/netsurf/; revision=13072
This commit is contained in:
parent
c970cc6dd4
commit
a4f14eb0e9
@ -3229,8 +3229,6 @@ void gui_window_redraw_window(struct gui_window *g)
|
||||
|
||||
void gui_window_update_box(struct gui_window *g, const struct rect *rect)
|
||||
{
|
||||
ULONG sx,sy;
|
||||
|
||||
if(!g) return;
|
||||
|
||||
ami_do_redraw_limits(g, g->shared->bw,
|
||||
@ -3292,9 +3290,9 @@ void ami_do_redraw(struct gui_window_2 *g)
|
||||
if(vcurrent>oldv)
|
||||
{
|
||||
ami_do_redraw_limits(g->bw->window, g->bw,
|
||||
hcurrent, (height / g->bw->scale) + oldv,
|
||||
hcurrent, (height / g->bw->scale) + oldv - 1,
|
||||
hcurrent + (width / g->bw->scale),
|
||||
vcurrent + (height / g->bw->scale));
|
||||
vcurrent + (height / g->bw->scale) + 1);
|
||||
}
|
||||
else if(vcurrent<oldv)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user