summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-13 22:25:11 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-13 22:25:11 +0000
commitfe7921a387c5a71c8ecba7bb605679b7dab4b86f (patch)
treed31c249671b3e71f498dd48b6c42b56f1e278f7f /atari
parentdb2f823e9990cee17b1072ce2296ef88062bc7bd (diff)
downloadnetsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.gz
netsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.bz2
Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
svn path=/trunk/netsurf/; revision=11670
Diffstat (limited to 'atari')
-rwxr-xr-xatari/browser.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/atari/browser.c b/atari/browser.c
index d6097d984..2c667a5d7 100755
--- a/atari/browser.c
+++ b/atari/browser.c
@@ -849,7 +849,7 @@ static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff )
LGRECT work;
CMP_BROWSER b = gw->browser;
GRECT area;
- int clip_x0, clip_x1, clip_y0, clip_y1;
+ struct rect clip;
LOG(("%s : %d,%d - %d,%d\n", b->bw->name, b->redraw.area.x0,
b->redraw.area.y0, b->redraw.area.x1, b->redraw.area.y1
@@ -862,16 +862,16 @@ static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff )
current_redraw_browser = b->bw;
if(content_get_type(b->bw->current_content) == CONTENT_HTML ) {
- clip_x0 = b->redraw.area.x0;
- clip_y0 = b->redraw.area.y0;
- clip_x1 = b->redraw.area.x1;
- clip_y1 = b->redraw.area.y1;
+ clip.x0 = b->redraw.area.x0;
+ clip.y0 = b->redraw.area.y0;
+ clip.x1 = b->redraw.area.x1;
+ clip.y1 = b->redraw.area.y1;
} else {
/* totally different coords, I don't understand why! */
- clip_x0 = b->redraw.area.x0 + b->scroll.current.x;
- 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;
+ clip.x0 = b->redraw.area.x0 + b->scroll.current.x;
+ 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( b->redraw.area.x0, b->redraw.area.y0,
b->redraw.area.x1, b->redraw.area.y1
@@ -889,8 +889,7 @@ static void browser_redraw_content( struct gui_window * gw, int xoff, int yoff )
-b->scroll.current.x, -b->scroll.current.y,
content_get_width( b->bw->current_content),
content_get_height( b->bw->current_content),
- clip_x0, clip_y0,
- clip_x1, clip_y1,
+ &clip,
b->bw->scale, 0xFFFFFF
);
current_redraw_browser = NULL;
@@ -1057,4 +1056,4 @@ static void __CDECL browser_evnt_redraw( COMPONENT * c, long buff[8], void * dat
}
return;
-} \ No newline at end of file
+}