diff options
author | Ole Loots <ole@monochrom.net> | 2011-03-01 19:29:40 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-03-01 19:29:40 +0000 |
commit | 58ad73bfc8223acef4ad5f0de1c2884d45692a04 (patch) | |
tree | 47dac68924e3ed636987ed1a2ef1c12ff1e18a97 /atari/plot/plotter_vdi.c | |
parent | ca73991ef597d581cdb158816da18ce751e96bed (diff) | |
download | netsurf-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_vdi.c')
-rwxr-xr-x | atari/plot/plotter_vdi.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/atari/plot/plotter_vdi.c b/atari/plot/plotter_vdi.c index f4cee9559..380584817 100755 --- a/atari/plot/plotter_vdi.c +++ b/atari/plot/plotter_vdi.c @@ -122,6 +122,8 @@ int ctor_plotter_vdi(GEM_PLOTTER self ) {
int retval = 0;
int i;
+ struct rect clip;
+
self->dtor = dtor;
self->resize= resize;
self->move = move;
@@ -167,7 +169,12 @@ int ctor_plotter_vdi(GEM_PLOTTER self ) /* offscreen: FIRSTFB(self).mem = malloc( FIRSTFB(self).size ); */
FIRSTFB(self).mem = NULL;
update_visible_rect( self );
- self->clip( self, 0, 0, FIRSTFB(self).w, FIRSTFB(self).h );
+
+ clip.x0 = 0;
+ clip.y0 = 0;
+ clip.x1 = FIRSTFB(self).w;
+ clip.y1 = FIRSTFB(self).h;
+ self->clip( self, &clip );
/* store system palette & setup the new (web) palette: */
i = 0;
if( app.nplanes <= 8 ){
@@ -601,7 +608,7 @@ static int polygon(GEM_PLOTTER self,const int *p, unsigned int n, const plot_st unsigned int i=0;
short d[4];
if( vdi_sysinfo.maxpolycoords > 0 )
- assert( n < vdi_sysinfo.maxpolycoords );
+ assert( (signed int)n < vdi_sysinfo.maxpolycoords );
/*
Does this double check make sense?
else
@@ -1041,11 +1048,8 @@ static int bitmap( GEM_PLOTTER self, struct bitmap * bmp, int x, int y, static int text(GEM_PLOTTER self, int x, int y, const char *text, size_t length, const plot_font_style_t *fstyle)
{
- self->font_plotter->text( self->font_plotter,
- x,
- y,
- text, length,
- fstyle
+ self->font_plotter->text( self->font_plotter, x, y,
+ text, length, fstyle
);
return ( 1 );
}
|