]> git.sesse.net Git - ccbs/blobdiff - bigscreen/splitscreen.cpp
Parametrize color scheme into a separate header file.
[ccbs] / bigscreen / splitscreen.cpp
index e4bb4c441155ec962ee92a0ec2366f3607c04c4b..b2939be755e2769eef5656bf0bd1e036a6388978 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <cstring>
 #include "splitscreen.h"
 
 #include <cstring>
 #include "splitscreen.h"
+#include "design.h"
 
 SplitScreen::SplitScreen(GenericScreen *s1, GenericScreen *s2, GenericScreen *s3, GenericScreen *s4)
        : valid(false)
 
 SplitScreen::SplitScreen(GenericScreen *s1, GenericScreen *s2, GenericScreen *s3, GenericScreen *s4)
        : valid(false)
@@ -52,17 +53,17 @@ void SplitScreen::draw(unsigned char *buf, unsigned width, unsigned height)
        // make divider lines
        unsigned char *ptr = buf + (height/2) * width * 4;
        for (unsigned x = 0; x < width; ++x) {
        // make divider lines
        unsigned char *ptr = buf + (height/2) * width * 4;
        for (unsigned x = 0; x < width; ++x) {
-               *ptr++ = 255;
-               *ptr++ = 255;
-               *ptr++ = 255;
+               *ptr++ = DIVIDER_BLUE;
+               *ptr++ = DIVIDER_GREEN;
+               *ptr++ = DIVIDER_RED;
                *ptr++ = 0;
        }
        
        ptr = buf + (width/2) * 4;
        for (unsigned y = 0; y < height; ++y) {
                *ptr++ = 0;
        }
        
        ptr = buf + (width/2) * 4;
        for (unsigned y = 0; y < height; ++y) {
-               ptr[0] = 255;
-               ptr[1] = 255;
-               ptr[2] = 255;
+               ptr[0] = DIVIDER_BLUE;
+               ptr[1] = DIVIDER_GREEN;
+               ptr[2] = DIVIDER_RED;
                ptr[3] = 0;
 
                ptr += width * 4;
                ptr[3] = 0;
 
                ptr += width * 4;