projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e44421
)
improved drawing initial header and item text to screen
author
Holger Schemel
<info@artsoft.org>
Sun, 5 Sep 2021 19:14:07 +0000
(21:14 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 5 Sep 2021 19:14:07 +0000
(21:14 +0200)
src/libgame/text.c
patch
|
blob
|
history
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index 3fb6ab0613ad00e76e21736cfea595c7944e60e0..117c9b1cda08765556a2549163ab6326a8559221 100644
(file)
--- 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)
{
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 &&
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)
{
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)
{
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);
}
DrawInitText(text, 150, FC_YELLOW);
}