X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fsplitscreen.cpp;h=10e31970a60939dbb360c4d5248691dc6e245a40;hp=a322fecd4eeb87951dbd80d660c8c140c0e6f418;hb=914b810749b54bb07e1944e558015d6c8f615528;hpb=ef3e9f27177227a0f412e6f9995212b36bf27f19 diff --git a/bigscreen/splitscreen.cpp b/bigscreen/splitscreen.cpp index a322fec..10e3197 100644 --- a/bigscreen/splitscreen.cpp +++ b/bigscreen/splitscreen.cpp @@ -45,6 +45,25 @@ void SplitScreen::draw(unsigned char *buf) downscale_2x2(buf + 800 * 300 * 4, subbufs[2]); downscale_2x2(buf + 800 * 300 * 4 + 400 * 4, subbufs[3]); + // make divider lines + unsigned char *ptr = buf + 300 * 800 * 4; + for (unsigned x = 0; x < 800; ++x) { + *ptr++ = 255; + *ptr++ = 255; + *ptr++ = 255; + *ptr++ = 0; + } + + ptr = buf + 400 * 4; + for (unsigned y = 0; y < 600; ++y) { + ptr[0] = 255; + ptr[1] = 255; + ptr[2] = 255; + ptr[3] = 0; + + ptr += 800 * 4; + } + valid = true; }