summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-20 16:17:43 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-20 16:17:43 +0000
commitdbab823ddc20fe10a4769d84cade873f02fbce06 (patch)
tree8ca26487a81e45df8d035967d24b42a874593156
parentef18fe4384600b0e191c8d338b3b254f8d18f222 (diff)
downloadnetsurf-dbab823ddc20fe10a4769d84cade873f02fbce06.tar.gz
netsurf-dbab823ddc20fe10a4769d84cade873f02fbce06.tar.bz2
Port Atari front end to browser_window_redraw().
svn path=/trunk/netsurf/; revision=11727
-rwxr-xr-xatari/browser.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/atari/browser.c b/atari/browser.c
index 8d2f79ca5..f75cf0ce6 100755
--- a/atari/browser.c
+++ b/atari/browser.c
@@ -872,24 +872,11 @@ static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff )
clip.y0 = b->redraw.area.y0 + b->scroll.current.y;
clip.x1 = b->redraw.area.x1 + b->scroll.current.x;
clip.y1 = b->redraw.area.y1 + b->scroll.current.y;
- /* must clear the surface: */
- plot.clip(&clip);
- plot.rectangle( b->redraw.area.x0,
- b->redraw.area.y0,
- b->redraw.area.x1,
- b->redraw.area.y1,
- plot_style_fill_white
- );
}
- content_redraw(
- b->bw->current_content,
- -b->scroll.current.x, -b->scroll.current.y,
- content_get_width( b->bw->current_content),
- content_get_height( b->bw->current_content),
- &clip,
- b->bw->scale, 0xFFFFFF
- );
+ browser_window_redraw( b->bw, -b->scroll.current.x,
+ -b->scroll.current.y, &clip );
+
current_redraw_browser = NULL;
/* reset redraw area */