From 135d4b63ff2e6985bc12a792221781a15e5e1058 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 18 Feb 2012 22:00:33 +0100 Subject: [PATCH] Fix RGB/BGR issues in fill_background(). --- bigscreen/theme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.2