diff options
author | Ole Loots <ole@monochrom.net> | 2012-02-25 15:23:00 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-02-25 15:23:00 +0000 |
commit | 174b52a0fd055d47aa95cdfbe818203afcf0b75b (patch) | |
tree | 4c7c38bafe7158ffc12c0c199d72b6b5f3703060 /atari/plot/font_freetype.c | |
parent | 20e825c8f44871c7ed234aa67260c794f6ef20ed (diff) | |
download | netsurf-174b52a0fd055d47aa95cdfbe818203afcf0b75b.tar.gz netsurf-174b52a0fd055d47aa95cdfbe818203afcf0b75b.tar.bz2 |
more #ifdef WITH_8BPP_SUPPORT
svn path=/trunk/netsurf/; revision=13467
Diffstat (limited to 'atari/plot/font_freetype.c')
-rwxr-xr-x | atari/plot/font_freetype.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c index 22c404e7c..9eba3b48b 100755 --- a/atari/plot/font_freetype.c +++ b/atari/plot/font_freetype.c @@ -477,15 +477,19 @@ static void draw_glyph1(FONT_PLOTTER self, GRECT * loc, uint8_t * pixdata, int p } }
} - if( app.nplanes > 8 ){
+#ifdef WITH_8BPP_SUPPORT + if( app.nplanes > 8 ){ +#endif
unsigned short out[4];
rgb_to_vdi1000( (unsigned char*)&colour, (unsigned short*)&out );
vs_color( self->plotter->vdi_handle, OFFSET_CUSTOM_COLOR, (unsigned short*)&out[0] );
self->plotter->plot_mfdb( self->plotter, loc, &tmp, OFFSET_CUSTOM_COLOR, PLOT_FLAG_TRANS ); +#ifdef WITH_8BPP_SUPPORT } else { unsigned char c = RGB_TO_VDI(colour); self->plotter->plot_mfdb( self->plotter, loc, &tmp, c, PLOT_FLAG_TRANS ); } +#endif } |