summaryrefslogtreecommitdiff
path: root/atari/plot
diff options
context:
space:
mode:
Diffstat (limited to 'atari/plot')
-rwxr-xr-xatari/plot/plotter_vdi.c8
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)