From: Holger Schemel Date: Sun, 5 Sep 2021 19:14:07 +0000 (+0200) Subject: improved drawing initial header and item text to screen X-Git-Tag: 4.3.0.0~74 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6c9f59b491dfde33305b9d09cf81700afb99e6e6;p=rocksndiamonds.git improved drawing initial header and item text to screen --- diff --git a/src/libgame/text.c b/src/libgame/text.c index 3fb6ab06..117c9b1c 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -138,10 +138,6 @@ int maxWordLengthInRequestString(char *text) void DrawInitText(char *text, int ypos, int font_nr) { - LimitScreenUpdates(TRUE); - - UPDATE_BUSY_STATE(); - if (window != NULL && gfx.draw_init_text && gfx.num_fonts > 0 && @@ -161,11 +157,21 @@ void DrawInitText(char *text, int ypos, int font_nr) void DrawInitTextHead(char *text) { + // always draw headlines when loading initial stuff + LimitScreenUpdates(FALSE); + + UPDATE_BUSY_STATE(); + DrawInitText(text, 120, FC_GREEN); } void DrawInitTextItem(char *text) { + // limit drawing (potentially many) loading items + LimitScreenUpdates(TRUE); + + UPDATE_BUSY_STATE(); + DrawInitText(text, 150, FC_YELLOW); }