]> Shamusworld >> Repos - apple2/blobdiff - src/gui/text.cpp
Preliminary workings of a disk handling window. Added element visibility,
[apple2] / src / gui / text.cpp
index 2dbae7eaa0ab12ddfa22bc055152484f16efc196..cd65a6ac60b0a8751329509caef282d07e231872 100644 (file)
@@ -23,6 +23,9 @@ Text::Text(uint32 x, uint32 y, std::string s, uint32 fg/*= 0xFF8484FF*/, uint32
 void Text::Draw(void)
 {
        if (text.length() > 0)
+       {
 //             DrawString(screenBuffer, extents.x + offsetX, extents.y + offsetY, false, "%s", text.c_str());
-               DrawStringOpaque(screen, extents.x, extents.y, fgColor, bgColor, "%s", text.c_str());
+               SDL_Rect r = GetScreenCoords();
+               DrawStringOpaque(screen, r.x, r.y, fgColor, bgColor, "%s", text.c_str());
+       }
 }