From 50692dc63c6955bc87210b1b43fe84e2985130c0 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 15 Mar 2010 18:48:14 +0000 Subject: Remove caret while "fast scrolling" to prevent caret-trails over the display. svn path=/trunk/netsurf/; revision=10132 --- amiga/gui.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index d00423ce7..7c71caac6 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3155,9 +3155,17 @@ void ami_do_redraw(struct gui_window_2 *g) if(g->redraw_scroll && c->type == CONTENT_HTML) { + int c_x = g->bw->window->c_x; + int c_y = g->bw->window->c_y; + int c_h = g->bw->window->c_h; + + gui_window_remove_caret(g->bw->window); + ScrollWindowRaster(g->win,hcurrent-oldh,vcurrent-oldv, xoffset,yoffset,xoffset+width,yoffset+height); + gui_window_place_caret(g->bw->window, c_x, c_y, c_h); + if(vcurrent>oldv) { ami_do_redraw_limits(g->bw->window, c, -- cgit v1.2.3