summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-15 18:48:14 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-15 18:48:14 +0000
commit50692dc63c6955bc87210b1b43fe84e2985130c0 (patch)
treec709d831a1d845f6e865f7fa2686dfd35edeaf47 /amiga
parent3129db31c33da71476234444d802f1ad620a2d74 (diff)
downloadnetsurf-50692dc63c6955bc87210b1b43fe84e2985130c0.tar.gz
netsurf-50692dc63c6955bc87210b1b43fe84e2985130c0.tar.bz2
Remove caret while "fast scrolling" to prevent caret-trails over the display.
svn path=/trunk/netsurf/; revision=10132
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c8
1 files changed, 8 insertions, 0 deletions
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,