From 2f6520e8b41f0e5236073fd0047351d63bc0bed9 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 24 May 2011 21:44:20 +0000 Subject: Removed dependency to cflib, call EvntWindom only one time per sec. when active flag is set. svn path=/trunk/netsurf/; revision=12443 --- atari/browser.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'atari/browser.c') diff --git a/atari/browser.c b/atari/browser.c index e107b88cd..eb348c6f1 100755 --- a/atari/browser.c +++ b/atari/browser.c @@ -24,7 +24,6 @@ #include #include #include -#include #include "desktop/gui.h" #include "desktop/netsurf.h" @@ -44,6 +43,7 @@ #include "atari/plot/plotter.h" #include "atari/plot.h" #include "atari/font.h" +#include "atari/nkcc.h" extern browser_mouse_state bmstate; extern int mouse_click_time[3]; @@ -908,9 +908,14 @@ static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff ) )); current_redraw_browser = b->bw; - + struct rect a; + a.x0 = b->redraw.area.x0; + a.y0 = b->redraw.area.y0; + a.x1 = b->redraw.area.x1; + a.y1 = b->redraw.area.y1; + browser_window_redraw( b->bw, -b->scroll.current.x, - -b->scroll.current.y, &b->redraw.area ); + -b->scroll.current.y, &a ); current_redraw_browser = NULL; } @@ -1092,4 +1097,4 @@ static void __CDECL browser_evnt_redraw( COMPONENT * c, long buff[8], void * dat } return; -} \ No newline at end of file +} -- cgit v1.2.3