]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui.cpp
Minor change to allow inverse text
[virtualjaguar] / src / gui.cpp
index bf4c30e941d24d5e8a743c13dc1d04199999e9a3..db683ab9c0c5b8f19c7121fe0b05e40f5c9a4e59 100644 (file)
@@ -19,7 +19,7 @@ void GUIDone(void)
 {
 }
 
-void DrawText(int16 * screen, uint32 x, uint32 y, const char * text, ...)
+void DrawText(int16 * screen, uint32 x, uint32 y, bool invert, const char * text, ...)
 {
        char string[4096];
        va_list arg;
@@ -39,8 +39,9 @@ void DrawText(int16 * screen, uint32 x, uint32 y, const char * text, ...)
                {
                        for(uint32 xx=0; xx<8; xx++)
                        {
-                               if (font1[fontAddr++])
+                               if ((font1[fontAddr] && !invert) || (!font1[fontAddr] && invert))
                                        *(screen + address + xx + (yy * pitch)) = 0xFE00;
+                               fontAddr++;
                        }
                }