diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-08-16 10:19:42 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-08-16 10:19:42 +0000 |
commit | 1526e22e4ff29153e9c127081e8ea8d9e2f33b8c (patch) | |
tree | b361766433d4a7b4a111865afd52803e2bbf7754 /source/q_field.c | |
parent | e826e5f176f21cd18b3bbc22887a266835ada57c (diff) |
Split some monolithic include files into smaller ones.
Use single BSP models cache for refresh and collision subsystems.
Refresh libraries may not longer be dynamically loaded.
Made gi.TagMalloc use separate tag namespace to avoid
conflicts with engine reserverd tags.
Fixed listing order of MVD channels in chooser menu.
A lot of misc changes... MSVC build is definitely broken now.
Diffstat (limited to 'source/q_field.c')
-rw-r--r-- | source/q_field.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/q_field.c b/source/q_field.c index 5f9554c..fdd5708 100644 --- a/source/q_field.c +++ b/source/q_field.c @@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "com_local.h" #include "key_public.h" #include "ref_public.h" +#include "vid_public.h" #include "q_field.h" /* @@ -61,7 +62,7 @@ void IF_Replace( inputField_t *field, const char *text ) { field->cursorPos = Q_strncpyz( field->text, text, sizeof( field->text ) ); } -#ifndef DEDICATED_ONLY +#if USE_CLIENT /* ================ @@ -234,14 +235,13 @@ int IF_Draw( inputField_t *field, int x, int y, int flags, qhandle_t font ) { } // draw text - ret = ref.DrawString( x, y, flags, field->visibleChars, - text + offset, font ); + ret = R_DrawString( x, y, flags, field->visibleChars, text + offset, font ); if( flags & UI_DRAWCURSOR ) { // draw blinking cursor if( ( com_localTime >> 8 ) & 1 ) { int c = Key_GetOverstrikeMode() ? 11 : '_'; - ref.DrawChar( x + cursorPos * CHAR_WIDTH, y, flags, c, font ); + R_DrawChar( x + cursorPos * CHAR_WIDTH, y, flags, c, font ); } } |