summaryrefslogtreecommitdiff
path: root/atari/plot/plotter.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-03-01 19:29:40 +0000
committerOle Loots <ole@monochrom.net>2011-03-01 19:29:40 +0000
commit58ad73bfc8223acef4ad5f0de1c2884d45692a04 (patch)
tree47dac68924e3ed636987ed1a2ef1c12ff1e18a97 /atari/plot/plotter.c
parentca73991ef597d581cdb158816da18ce751e96bed (diff)
downloadnetsurf-58ad73bfc8223acef4ad5f0de1c2884d45692a04.tar.gz
netsurf-58ad73bfc8223acef4ad5f0de1c2884d45692a04.tar.bz2
Adjusted clipping rect changes for atari fronted.
svn path=/trunk/netsurf/; revision=11875
Diffstat (limited to 'atari/plot/plotter.c')
-rwxr-xr-xatari/plot/plotter.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c
index f645af483..62fb10918 100755
--- a/atari/plot/plotter.c
+++ b/atari/plot/plotter.c
@@ -683,7 +683,7 @@ short rgb_to_666_index(unsigned char r, unsigned char g, unsigned char b)
}
/* Shared (static in object oriented slang) plotter functions: */
-int plotter_get_clip( GEM_PLOTTER self, struct s_clipping * out )
+int plotter_get_clip( GEM_PLOTTER self, struct rect * out )
{
out->x0 = self->clipping.x0;
out->y0 = self->clipping.y0;
@@ -692,12 +692,12 @@ int plotter_get_clip( GEM_PLOTTER self, struct s_clipping * out )
return( 1 );
}
-int plotter_std_clip(GEM_PLOTTER self,int x0, int y0, int x1, int y1)
+int plotter_std_clip(GEM_PLOTTER self, const struct rect * clip)
{
- self->clipping.x0 = x0;
- self->clipping.y0 = y0;
- self->clipping.x1 = x1;
- self->clipping.y1 = y1;
+ self->clipping.x0 = clip->x0;
+ self->clipping.y0 = clip->y0;
+ self->clipping.x1 = clip->x1;
+ self->clipping.y1 = clip->y1;
return ( 1 );
}
@@ -706,7 +706,7 @@ void plotter_vdi_clip( GEM_PLOTTER self, bool set)
{
return;
if( set == true ) {
- struct s_clipping * c = &self->clipping;
+ struct rect * c = &self->clipping;
short vdiflags[58];
short newclip[4];
vq_extnd( self->vdi_handle, 1, (short*)&vdiflags);