projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed linker flags when building for Emscripten platform
[rocksndiamonds.git]
/
src
/
libgame
/
text.c
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index 3fb6ab0613ad00e76e21736cfea595c7944e60e0..17475e8c721247b0d92a51532229275e6676e78b 100644
(file)
--- a/
src/libgame/text.c
+++ b/
src/libgame/text.c
@@
-136,7
+136,7
@@
int maxWordLengthInRequestString(char *text)
// simple text drawing functions
// ============================================================================
// 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);
{
LimitScreenUpdates(TRUE);
@@
-155,18
+155,24
@@
void DrawInitText(char *text, int ypos, int font_nr)
ClearRectangle(drawto, 0, y, width, height);
DrawTextExt(drawto, x, y, text, font_nr, BLIT_OPAQUE);
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)
{
void DrawInitTextHead(char *text)
{
- DrawInitText
(text, 120, FC_GREEN
);
+ DrawInitText
Ext(text, 120, FC_GREEN, FALSE
);
}
void DrawInitTextItem(char *text)
{
}
void DrawInitTextItem(char *text)
{
- DrawInitText
(text, 150, FC_YELLOW
);
+ DrawInitText
Ext(text, 150, FC_YELLOW, TRUE
);
}
void DrawTextF(int x, int y, int font_nr, char *format, ...)
}
void DrawTextF(int x, int y, int font_nr, char *format, ...)