projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved code for drawing init text to screen
[rocksndiamonds.git]
/
src
/
libgame
/
text.c
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index c10583d3564ec2baea82324cb8cb9545627bad42..3fb6ab0613ad00e76e21736cfea595c7944e60e0 100644
(file)
--- a/
src/libgame/text.c
+++ b/
src/libgame/text.c
@@
-159,6
+159,16
@@
void DrawInitText(char *text, int ypos, int font_nr)
}
}
}
}
+void DrawInitTextHead(char *text)
+{
+ DrawInitText(text, 120, FC_GREEN);
+}
+
+void DrawInitTextItem(char *text)
+{
+ DrawInitText(text, 150, FC_YELLOW);
+}
+
void DrawTextF(int x, int y, int font_nr, char *format, ...)
{
char buffer[MAX_OUTPUT_LINESIZE + 1];
void DrawTextF(int x, int y, int font_nr, char *format, ...)
{
char buffer[MAX_OUTPUT_LINESIZE + 1];