summaryrefslogtreecommitdiff
path: root/atari/plot
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-05-09 20:46:44 +0000
committerOle Loots <ole@monochrom.net>2011-05-09 20:46:44 +0000
commitb046d77f3f1ba4e3f7a6f9e1aa4afb01ce60eb74 (patch)
tree1f386d0b91bd2ed23d6b62c6bdc5d73a15f400b5 /atari/plot
parent87430b985bdfc8978a475329d3ef6c1278a19430 (diff)
downloadnetsurf-b046d77f3f1ba4e3f7a6f9e1aa4afb01ce60eb74.tar.gz
netsurf-b046d77f3f1ba4e3f7a6f9e1aa4afb01ce60eb74.tar.bz2
fixed call parameters for vdi_clip.
svn path=/trunk/netsurf/; revision=12357
Diffstat (limited to 'atari/plot')
-rwxr-xr-xatari/plot/plotter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c
index 9436dbc36..53815a4a3 100755
--- a/atari/plot/plotter.c
+++ b/atari/plot/plotter.c
@@ -710,8 +710,8 @@ void plotter_vdi_clip( GEM_PLOTTER self, bool set)
prev_vdi_clip[3] = vdiflags[48];
newclip[0] = CURFB(self).x + MAX(c->x0, 0);
newclip[1] = CURFB(self).y + MAX(c->y0, 0);
- newclip[2] = newclip[0] + MIN(CURFB(self).vis_w-c->x0, c->x1 - c->x0)-1;
- newclip[3] = newclip[1] + MIN(CURFB(self).vis_h-c->y1, c->y1 - c->y0)-1;
+ newclip[2] = newclip[0] + MIN(CURFB(self).vis_w, c->x1 - c->x0)-1;
+ newclip[3] = newclip[1] + MIN(CURFB(self).vis_h, c->y1 - c->y0)-1;
vs_clip( self->vdi_handle, 1, (short*)&newclip );
} else {
vs_clip( self->vdi_handle, 1, (short *)&prev_vdi_clip );