diff options
| author | oy <Tom_Adams@web.de> | 2012-01-10 23:13:19 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-10 23:13:19 +0100 |
| commit | fa81141110ad46fc65860091c065bb932916fef4 (patch) | |
| tree | f7d454da8e98b7befd559418ef2c44e42e050100 /src/game/client/ui.cpp | |
| parent | e8f9145a0dc097e7c1752f586049fd489a96d984 (diff) | |
| download | zcatch-fa81141110ad46fc65860091c065bb932916fef4.tar.gz zcatch-fa81141110ad46fc65860091c065bb932916fef4.zip | |
added demo markers by Choupom. Closes #837
Diffstat (limited to 'src/game/client/ui.cpp')
| -rw-r--r-- | src/game/client/ui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 00a30c15..c5219575 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -74,6 +74,11 @@ CUIRect *CUI::Screen() return &m_Screen; } +float CUI::PixelSize() +{ + return Screen()->w/Graphics()->ScreenWidth(); +} + void CUI::SetScale(float s) { g_Config.m_UiScale = (int)(s*100.0f); |