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_playerconfig.c | |
parent | 93bdbd9e43c4616d2fa647374bc7d43fa5cc0220 (diff) |
Implemented UI scaling, added ui_scale variable.
Draw_ClipRect now operates correctly on scaled coordinates.
Diffstat (limited to 'source/ui_playerconfig.c')
-rw-r--r-- | source/ui_playerconfig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/ui_playerconfig.c b/source/ui_playerconfig.c index 637fa95..5209284 100644 --- a/source/ui_playerconfig.c +++ b/source/ui_playerconfig.c @@ -217,10 +217,10 @@ qboolean PlayerConfig_MenuInit( void ) { } } - m_playerConfig.refdef.x = uis.glconfig.vidWidth / 2; + m_playerConfig.refdef.x = uis.width / 2; m_playerConfig.refdef.y = 60; - m_playerConfig.refdef.width = uis.glconfig.vidWidth / 2; - m_playerConfig.refdef.height = uis.glconfig.vidHeight - 122; + m_playerConfig.refdef.width = uis.width / 2; + m_playerConfig.refdef.height = uis.height - 122; m_playerConfig.refdef.fov_x = 40; m_playerConfig.refdef.fov_y = Com_CalcFov( m_playerConfig.refdef.fov_x, @@ -246,8 +246,8 @@ qboolean PlayerConfig_MenuInit( void ) { m_playerConfig.oldTime = m_playerConfig.time; PlayerConfig_RunFrame(); - x = uis.glconfig.vidWidth / 2 - 130; - y = uis.glconfig.vidHeight / 2 - 97; + x = uis.width / 2 - 130; + y = uis.height / 2 - 97; m_playerConfig.menu.draw = PlayerConfig_MenuDraw; m_playerConfig.menu.callback = PlayerConfig_MenuCallback; |