X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fsplitscreen.cpp;fp=bigscreen%2Fsplitscreen.cpp;h=b2939be755e2769eef5656bf0bd1e036a6388978;hp=e4bb4c441155ec962ee92a0ec2366f3607c04c4b;hb=d4ec885cadcbcce077579bdd24c93ead18b06852;hpb=07c1b0a88317b59f0deee5ad5d3e4febd423acbc diff --git a/bigscreen/splitscreen.cpp b/bigscreen/splitscreen.cpp index e4bb4c4..b2939be 100644 --- a/bigscreen/splitscreen.cpp +++ b/bigscreen/splitscreen.cpp @@ -2,6 +2,7 @@ #include #include "splitscreen.h" +#include "design.h" 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) { - *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] = 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;