diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-12-02 18:33:17 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-12-02 18:33:17 +0000 |
commit | 54124502cfb00c497ed24cbc8a9afefff1ba1b3a (patch) | |
tree | 981e7fcfbea28b5e1f9d913e56752bbf5750b89c /source/ui_keys.c | |
parent | 93bdbd9e43c4616d2fa647374bc7d43fa5cc0220 (diff) |
Implemented UI scaling, added ui_scale variable.
Draw_ClipRect now operates correctly on scaled coordinates.
Diffstat (limited to 'source/ui_keys.c')
-rw-r--r-- | source/ui_keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ui_keys.c b/source/ui_keys.c index 06b16ec..c73515a 100644 --- a/source/ui_keys.c +++ b/source/ui_keys.c @@ -157,8 +157,8 @@ static void KeysMenu_Init( const char **names, int total, const char *banner ) { menuKeybind_t *k; int i, x, y; - x = uis.glconfig.vidWidth / 2; - y = ( uis.glconfig.vidHeight - MENU_SPACING * total ) / 2; + x = uis.width / 2; + y = ( uis.height - MENU_SPACING * total ) / 2; memset( &m_keys, 0, sizeof( m_keys ) ); |