diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-26 15:44:14 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-26 15:44:14 +0000 |
commit | b7f7293802be1837f74fe5c2a19b8afb09da90c1 (patch) | |
tree | 66e736e0a19b867856f5fb11e6376210806c91f5 | |
parent | 2951735e2f0353de035a1d6de839193578cc96b8 (diff) | |
download | netsurf-b7f7293802be1837f74fe5c2a19b8afb09da90c1.tar.gz netsurf-b7f7293802be1837f74fe5c2a19b8afb09da90c1.tar.bz2 |
random changes
svn path=/trunk/netsurf/; revision=13474
-rwxr-xr-x | amiga/gui.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 54f0d4055..39f2d9f72 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3215,10 +3215,10 @@ void gui_window_set_title(struct gui_window *g, const char *title) } void ami_do_redraw_tiled(struct gui_window_2 *gwin, - ULONG left, ULONG top, ULONG width, ULONG height, - ULONG sx, ULONG sy, struct IBox *bbox, struct redraw_context *ctx) + int left, int top, int width, int height, + int sx, int sy, struct IBox *bbox, struct redraw_context *ctx) { - ULONG x, y; + int x, y; struct rect clip; if(top < 0) { @@ -3249,6 +3249,8 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, if(width <= 0) return; if(height <= 0) return; +//printf("%ld %ld %ld %ld\n",left, top, width, height); + for(y = top; y < (top + height); y += option_redraw_tile_size) { clip.y0 = 0; clip.y1 = option_redraw_tile_size; @@ -3259,7 +3261,12 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, clip.x1 = option_redraw_tile_size; if(((left + width) - x) < option_redraw_tile_size) clip.x1 = (left + width) - x; - if(browser_window_redraw(gwin->bw, clip.x0 - (x / gwin->bw->scale), clip.y0 - (y / gwin->bw->scale), &clip, ctx)) +//printf("%ld %ld -> %ld %ld\n",clip.x0 - (int)(x / gwin->bw->scale), clip.y0 - (int)(y / gwin->bw->scale), clip.x1, clip.y1); + + if(browser_window_redraw(gwin->bw, + clip.x0 - (int)(x / gwin->bw->scale), + clip.y0 - (int)(y / gwin->bw->scale), + &clip, ctx)) { ami_clearclipreg(&browserglob); |