// simple text drawing functions
// ============================================================================
-void DrawInitText(char *text, int ypos, int font_nr)
+static void DrawInitTextExt(char *text, int ypos, int font_nr, boolean update)
{
LimitScreenUpdates(TRUE);
ClearRectangle(drawto, 0, y, width, height);
DrawTextExt(drawto, x, y, text, font_nr, BLIT_OPAQUE);
- BlitBitmap(drawto, window, 0, 0, video.width, video.height, 0, 0);
+ if (update)
+ BlitBitmap(drawto, window, 0, 0, video.width, video.height, 0, 0);
}
}
+void DrawInitText(char *text, int ypos, int font_nr)
+{
+ DrawInitTextExt(text, ypos, font_nr, FALSE);
+}
+
void DrawInitTextHead(char *text)
{
- DrawInitText(text, 120, FC_GREEN);
+ DrawInitTextExt(text, 120, FC_GREEN, FALSE);
}
void DrawInitTextItem(char *text)
{
- DrawInitText(text, 150, FC_YELLOW);
+ DrawInitTextExt(text, 150, FC_YELLOW, TRUE);
}
void DrawTextF(int x, int y, int font_nr, char *format, ...)