diff options
author | Ole Loots <ole@monochrom.net> | 2011-05-09 22:08:34 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-05-09 22:08:34 +0000 |
commit | 2f40a85b67a8257d991e2538f568ba8b41d9e175 (patch) | |
tree | 1773826c861ef285cb82e816ff2b365b421d8acc /atari | |
parent | b046d77f3f1ba4e3f7a6f9e1aa4afb01ce60eb74 (diff) | |
download | netsurf-2f40a85b67a8257d991e2538f568ba8b41d9e175.tar.gz netsurf-2f40a85b67a8257d991e2538f568ba8b41d9e175.tar.bz2 |
fixed call parameters for vdi_clip.
svn path=/trunk/netsurf/; revision=12358
Diffstat (limited to 'atari')
-rwxr-xr-x | atari/plot/plotter.c | 4 | ||||
-rwxr-xr-x | atari/plot/plotter_vdi.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c index 53815a4a3..0749035da 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->x1 - c->x0)-1;
- newclip[3] = newclip[1] + MIN(CURFB(self).vis_h, c->y1 - c->y0)-1;
+ newclip[2] = MIN(CURFB(self).x+CURFB(self).w, newclip[0] + (c->x1 - c->x0) )-1;
+ newclip[3] = MIN(CURFB(self).y+CURFB(self).h, newclip[1] + (c->y1 - c->y0) )-1;
vs_clip( self->vdi_handle, 1, (short*)&newclip );
} else {
vs_clip( self->vdi_handle, 1, (short *)&prev_vdi_clip );
diff --git a/atari/plot/plotter_vdi.c b/atari/plot/plotter_vdi.c index 819e9c593..52af1340c 100755 --- a/atari/plot/plotter_vdi.c +++ b/atari/plot/plotter_vdi.c @@ -601,7 +601,6 @@ static int polygon(GEM_PLOTTER self,const int *p, unsigned int n, const plot_st else
assert( n < vdi_sysinfo.maxintin );
*/
- /* test this: */
plotter_vdi_clip( self, 1);
vsf_interior( self->vdi_handle, FIS_SOLID );
vsf_style( self->vdi_handle, 1);
|