From 174b52a0fd055d47aa95cdfbe818203afcf0b75b Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sat, 25 Feb 2012 15:23:00 +0000 Subject: more #ifdef WITH_8BPP_SUPPORT svn path=/trunk/netsurf/; revision=13467 --- atari/plot/font_internal.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'atari/plot/font_internal.c') diff --git a/atari/plot/font_internal.c b/atari/plot/font_internal.c index 5d70c2645..1f9f1301c 100644 --- a/atari/plot/font_internal.c +++ b/atari/plot/font_internal.c @@ -240,15 +240,19 @@ static int text( FONT_PLOTTER self, int x, int y, const char *text, size_t leng d += rowsize; } } - if( app.nplanes > 8 ){ +#ifdef WITH_8BPP_SUPPORT + if( app.nplanes > 8 ){ +#endif unsigned short out[4]; rgb_to_vdi1000( (unsigned char*)&fstyle->foreground, (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(fstyle->foreground); self->plotter->plot_mfdb( self->plotter, &loc, &tmp, c, PLOT_FLAG_TRANS ); - } + } +#endif } free(buffer); -- cgit v1.2.3