From: Steinar H. Gunderson Date: Sat, 18 Feb 2012 21:00:33 +0000 (+0100) Subject: Fix RGB/BGR issues in fill_background(). X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=135d4b63ff2e6985bc12a792221781a15e5e1058 Fix RGB/BGR issues in fill_background(). --- diff --git a/bigscreen/theme.cpp b/bigscreen/theme.cpp index 008c37f..e873c9d 100644 --- a/bigscreen/theme.cpp +++ b/bigscreen/theme.cpp @@ -68,9 +68,9 @@ void fill_background(unsigned char *buf, unsigned width, unsigned height) unsigned char *ptr = buf; for (unsigned i = 0; i < width * height; ++i) { - *ptr++ = bg_r; - *ptr++ = bg_g; *ptr++ = bg_b; + *ptr++ = bg_g; + *ptr++ = bg_r; *ptr++ = 0; } }