diff options
author | Ole Loots <ole@monochrom.net> | 2012-06-19 23:06:39 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-06-19 23:06:39 +0000 |
commit | bad987b1858c26171a1ad58f76817ac90605276d (patch) | |
tree | ab5b1f94db10002e98c1f17933e20edd77a5ceec /atari | |
parent | cd45e1f44720a563d9b7e9b9bc7ea2b410444d3f (diff) | |
download | netsurf-bad987b1858c26171a1ad58f76817ac90605276d.tar.gz netsurf-bad987b1858c26171a1ad58f76817ac90605276d.tar.bz2 |
added some missing WITH_8BPP_SUPPORT ifdefs.
svn path=/trunk/netsurf/; revision=13974
Diffstat (limited to 'atari')
-rwxr-xr-x | atari/plot/plotter_vdi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/atari/plot/plotter_vdi.c b/atari/plot/plotter_vdi.c index 750b085b2..8b4550e80 100755 --- a/atari/plot/plotter_vdi.c +++ b/atari/plot/plotter_vdi.c @@ -99,11 +99,14 @@ extern unsigned short vdi_web_pal[216][3]; static inline void vsl_rgbcolor( short vdih, uint32_t cin ) { + #ifdef WITH_8BPP_SUPPORT if( vdi_sysinfo.scr_bpp > 8 ) { + #endif unsigned short c[4]; rgb_to_vdi1000( (unsigned char*)&cin, (unsigned short*)&c ); vs_color( vdih, OFFSET_CUSTOM_COLOR, (unsigned short*)&c[0] ); vsl_color( vdih, OFFSET_CUSTOM_COLOR ); + #ifdef WITH_8BPP_SUPPORT } else { if( vdi_sysinfo.scr_bpp >= 4 ){ vsl_color( vdih, RGB_TO_VDI(cin) ); @@ -111,15 +114,19 @@ static inline void vsl_rgbcolor( short vdih, uint32_t cin ) else vsl_color( vdih, BLACK ); } + #endif } static inline void vsf_rgbcolor( short vdih, uint32_t cin ) { + #ifdef WITH_8BPP_SUPPORT if( vdi_sysinfo.scr_bpp > 8 ) { + #endif unsigned short c[4]; rgb_to_vdi1000( (unsigned char*)&cin, (unsigned short*)&c ); vs_color( vdih, OFFSET_CUSTOM_COLOR, &c[0] ); vsf_color( vdih, OFFSET_CUSTOM_COLOR ); + #ifdef WITH_8BPP_SUPPORT } else { if( vdi_sysinfo.scr_bpp >= 4 ){ vsf_color( vdih, RGB_TO_VDI(cin) ); @@ -127,6 +134,7 @@ static inline void vsf_rgbcolor( short vdih, uint32_t cin ) else vsf_color( vdih, WHITE ); } + #endif } static int set_clip(GEM_PLOTTER self, const struct rect * clip)
|