From 1526e22e4ff29153e9c127081e8ea8d9e2f33b8c Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sat, 16 Aug 2008 10:19:42 +0000 Subject: 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. --- source/q_field.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/q_field.c') 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 ); } } -- cgit v1.2.3