summaryrefslogtreecommitdiff
path: root/source/gl_draw.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-23 18:01:39 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-23 18:01:39 +0000
commit3f0f134217531bd2f7d099f12e4ea77d3565cf91 (patch)
tree274f3849b8bbaa26bc2018db75bee9795bb3e3ce /source/gl_draw.c
parent2479c40e2c820cb3e9eabe9e116148187f84d11a (diff)
Added `com_uptime' macro.
Version string no longer overdraws long command line in console. Cap `gl_celshading' value to 5 to prevent possible cheating.
Diffstat (limited to 'source/gl_draw.c')
-rw-r--r--source/gl_draw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gl_draw.c b/source/gl_draw.c
index 51f6b9c..bf24608 100644
--- a/source/gl_draw.c
+++ b/source/gl_draw.c
@@ -248,8 +248,8 @@ void Draw_Char( int x, int y, uint32 flags, int ch, qhandle_t hFont ) {
draw.color, R_ImageForHandle( hFont ) );
}
-void Draw_String( int x, int y, uint32 flags, int maxChars,
- const char *string, qhandle_t hFont )
+int Draw_String( int x, int y, uint32 flags, int maxChars,
+ const char *string, qhandle_t hFont )
{
byte c;
float s, t;
@@ -300,6 +300,7 @@ void Draw_String( int x, int y, uint32 flags, int maxChars,
colors[ ( c >> 7 ) & 1 ], image );
x += 8;
}
+ return x;
}
image_t *r_charset;