#include <cstring>
#include "splitscreen.h"
+#include "design.h"
SplitScreen::SplitScreen(GenericScreen *s1, GenericScreen *s2, GenericScreen *s3, GenericScreen *s4)
: valid(false)
// 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;