summaryrefslogtreecommitdiff
path: root/source/ui_ingame.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-12-02 18:33:17 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-12-02 18:33:17 +0000
commit54124502cfb00c497ed24cbc8a9afefff1ba1b3a (patch)
tree981e7fcfbea28b5e1f9d913e56752bbf5750b89c /source/ui_ingame.c
parent93bdbd9e43c4616d2fa647374bc7d43fa5cc0220 (diff)
Implemented UI scaling, added ui_scale variable.
Draw_ClipRect now operates correctly on scaled coordinates.
Diffstat (limited to 'source/ui_ingame.c')
-rw-r--r--source/ui_ingame.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/ui_ingame.c b/source/ui_ingame.c
index 96fa787..8810cc4 100644
--- a/source/ui_ingame.c
+++ b/source/ui_ingame.c
@@ -89,15 +89,15 @@ static void IngameMenu_Draw( menuFrameWork_t *self ) {
int y1, y2;
color_t color;
- y1 = ( uis.glconfig.vidHeight - 16 * INGAME_ITEMS ) / 2 - 16;
- y2 = ( uis.glconfig.vidHeight + 16 * INGAME_ITEMS ) / 2 + 16;
+ y1 = ( uis.height - 16 * INGAME_ITEMS ) / 2 - 16;
+ y2 = ( uis.height + 16 * INGAME_ITEMS ) / 2 + 16;
color[0] = 0;
color[1] = 0;
color[2] = 255;
color[3] = 32;
- ref.DrawFillEx( 0, y1, uis.glconfig.vidWidth, y2 - y1, color );
+ ref.DrawFillEx( 0, y1, uis.width, y2 - y1, color );
Menu_Draw( self );
}
@@ -108,8 +108,8 @@ static void IngameMenu_Init( void ) {
int i;
int x, y;
- x = uis.glconfig.vidWidth / 2;
- y = ( uis.glconfig.vidHeight - 16 * INGAME_ITEMS ) / 2;
+ x = uis.width / 2;
+ y = ( uis.height - 16 * INGAME_ITEMS ) / 2;
memset( &m_ingame, 0, sizeof( m_ingame ) );