summaryrefslogtreecommitdiff
path: root/atari/plot/plotter_vdi.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-02-25 15:23:00 +0000
committerOle Loots <ole@monochrom.net>2012-02-25 15:23:00 +0000
commit174b52a0fd055d47aa95cdfbe818203afcf0b75b (patch)
tree4c7c38bafe7158ffc12c0c199d72b6b5f3703060 /atari/plot/plotter_vdi.c
parent20e825c8f44871c7ed234aa67260c794f6ef20ed (diff)
downloadnetsurf-174b52a0fd055d47aa95cdfbe818203afcf0b75b.tar.gz
netsurf-174b52a0fd055d47aa95cdfbe818203afcf0b75b.tar.bz2
more #ifdef WITH_8BPP_SUPPORT
svn path=/trunk/netsurf/; revision=13467
Diffstat (limited to 'atari/plot/plotter_vdi.c')
-rwxr-xr-xatari/plot/plotter_vdi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/atari/plot/plotter_vdi.c b/atari/plot/plotter_vdi.c
index fa7bc3550..33eb8857f 100755
--- a/atari/plot/plotter_vdi.c
+++ b/atari/plot/plotter_vdi.c
@@ -145,7 +145,11 @@ int ctor_plotter_vdi(GEM_PLOTTER self )
self->path = path;
self->bitmap = bitmap;
self->bitmap_resize = bitmap_resize;
+#ifdef WITH_8BPP_SUPPORT
self->bitmap_convert =(app.nplanes > 8) ? bitmap_convert : bitmap_convert_8;
+#else
+ self->bitmap_convert = bitmap_convert;
+#endif
//self->bitmap_convert =bitmap_convert;
self->plot_mfdb = plot_mfdb;
self->text = text;
@@ -261,10 +265,11 @@ static int dtor( GEM_PLOTTER self )
free( self->fbuf[i].mem );
}
+#ifdef WITH_8BPP_SUPPORT
for( i=OFFSET_WEB_PAL; i<OFFSET_CUST_PAL+16; i++){
vs_color( self->vdi_handle, i, &sys_pal[i][0] );
}
-
+#endif
/* close Hermes stuff: */
Hermes_ConverterReturn( hermes_cnv_h );
@@ -1031,6 +1036,7 @@ inline unsigned char get_stdpx(MFDB * dst, int wdplanesz, int x, int y )
return( ret );
}
+#ifdef WITH_8BPP_SUPPORT
static int bitmap_convert_8( GEM_PLOTTER self,
struct bitmap * img,
int x,
@@ -1211,6 +1217,7 @@ static int bitmap_convert_8( GEM_PLOTTER self,
return(0);
}
+#endif
/* convert bitmap to the virutal (chunked) framebuffer format */
static int bitmap_convert( GEM_PLOTTER self,