summaryrefslogtreecommitdiff
path: root/src/scanout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanout.c')
-rw-r--r--src/scanout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanout.c b/src/scanout.c
index 53e5948..f0e6de3 100644
--- a/src/scanout.c
+++ b/src/scanout.c
@@ -87,7 +87,7 @@ int scanout_all(struct nanolight *nl)
cls->attributes16 & PANTILT);
}
- if ( cls->attributes & COL_CMY ) {
+ if ( (cls->attributes & COLOUR) && (cls->properties & COL_CMY) ) {
set_val(dmx, fix->base_addr, cls->cyan_offset, fix->cyan,
cls->attributes16 & COL_CMY);
set_val(dmx, fix->base_addr, cls->magenta_offset, fix->magenta,
@@ -96,7 +96,7 @@ int scanout_all(struct nanolight *nl)
cls->attributes16 & COL_CMY);
}
- if ( cls->attributes & COL_RGB ) {
+ if ( (cls->attributes & COLOUR) && (cls->properties & COL_RGB) ) {
set_val(dmx, fix->base_addr, cls->red_offset, fix->red,
cls->attributes16 & COL_RGB);
set_val(dmx, fix->base_addr, cls->green_offset, fix->green,