]> git.sesse.net Git - ccbs/commitdiff
Fix RGB/BGR issues in fill_background().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 21:00:33 +0000 (22:00 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 21:00:33 +0000 (22:00 +0100)
bigscreen/theme.cpp

index 008c37fbffa4303dfdd9d43837c568ad7c125a9a..e873c9d9dfdcb3e16dee7e52bda4298e5384f89b 100644 (file)
@@ -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) {
 
        unsigned char *ptr = buf;
        for (unsigned i = 0; i < width * height; ++i) {
-               *ptr++ = bg_r;
-               *ptr++ = bg_g;
                *ptr++ = bg_b;
                *ptr++ = bg_b;
+               *ptr++ = bg_g;
+               *ptr++ = bg_r;
                *ptr++ = 0;
        }
 }
                *ptr++ = 0;
        }
 }