summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-07-26 19:52:24 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-07-26 19:52:24 +0000
commit7bf81dbf3581f9a489363904397fc3c8138f1ec9 (patch)
tree0e83bdcf9a24c15275e7e067090256456409fda3 /amiga
parentcb29fca203948c1b4a9b7bf6c92ac5a016d6ccc3 (diff)
downloadnetsurf-7bf81dbf3581f9a489363904397fc3c8138f1ec9.tar.gz
netsurf-7bf81dbf3581f9a489363904397fc3c8138f1ec9.tar.bz2
Fix clipping for non-HTML contents
svn path=/trunk/netsurf/; revision=10664
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 248b59dd0..9609b7a08 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3062,8 +3062,8 @@ void ami_do_redraw_limits(struct gui_window *g, hlcache_handle *c,int x0, int y0
content_redraw(c,
-sx, -sy,
- width - sx,
- height - sy,
+ width, // - sx,
+ height, // - sy,
(x0 - sx) * g->shared->bw->scale,
(y0 - sy) * g->shared->bw->scale,
(x1 - sx) * g->shared->bw->scale,
@@ -3218,8 +3218,8 @@ void ami_do_redraw(struct gui_window_2 *g)
{
content_redraw(c, -hcurrent,
-vcurrent,
- width - hcurrent,
- height - vcurrent,
+ width,
+ height,
0,0,width,
height,
g->bw->scale,0xFFFFFF);
@@ -3228,10 +3228,10 @@ void ami_do_redraw(struct gui_window_2 *g)
{
content_redraw(c, -hcurrent /* * g->bw->scale */,
-vcurrent /* * g->bw->scale */,
- (width / g->bw->scale) - hcurrent,
- (height / g->bw->scale) - vcurrent,
- 0,0, content_get_width(c) /* * g->bw->scale */,
- content_get_height(c) /* * g->bw->scale */,
+ (width / g->bw->scale), //- hcurrent,
+ (height / g->bw->scale), // - vcurrent,
+ hcurrent, vcurrent, width + hcurrent /* * g->bw->scale */,
+ height + vcurrent /* * g->bw->scale */,
g->bw->scale,0xFFFFFF);
}