X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui.cpp;h=db683ab9c0c5b8f19c7121fe0b05e40f5c9a4e59;hb=a2f29c64b6ca441c51d6d1340907a1168c15fc7b;hp=bf4c30e941d24d5e8a743c13dc1d04199999e9a3;hpb=940d49408c1bedb340cf7d03b5f8fa6c23cdb9df;p=virtualjaguar diff --git a/src/gui.cpp b/src/gui.cpp index bf4c30e..db683ab 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -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++; } }