]> git.sesse.net Git - ccbs/blobdiff - bigscreen/fonts.cpp
Make the "red stuff is new stuff" fade a lot prettier.
[ccbs] / bigscreen / fonts.cpp
index 2a7d2742ce6a663fcf8a7f9c3cdf1a4f9ab5d55e..8ba809f087c6a03001bcc1140271a9e051483c2e 100644 (file)
@@ -71,11 +71,11 @@ unsigned my_draw_text(const widestring &str, unsigned char *buf, double size, in
 
                                int width = (x + xpos + slot->bitmap_left + bm->width >= 800) ? (799 - x - xpos - slot->bitmap_left) : bm->width;
                                for (xx = 0; xx < width; xx++) {
-                                       *dst = (*dst * (256-*src) + r * *src) >> 8;
+                                       *dst = (*dst * (256-*src) + b * *src) >> 8;
                                        *dst++;
                                        *dst = (*dst * (256-*src) + g * *src) >> 8;
                                        *dst++;
-                                       *dst = (*dst * (256-*src) + b * *src) >> 8;
+                                       *dst = (*dst * (256-*src) + r * *src) >> 8;
                                        *dst++;
                                        *dst++ = 0;
                                        src++;