diff options
author | sapier <Sapier at GMX dot net> | 2014-11-23 13:40:43 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-11-30 17:50:09 +0100 |
commit | dceb9f7d6058785cf60d9dbcc8eecdcee1053412 (patch) | |
tree | 0cbaa6969210d3e104f195ac5d3c2cabad8d6338 /src/porting.cpp | |
parent | 25945dc5395a03cab069ff0e6470ba8d59b03978 (diff) | |
download | minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.tar.gz minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.tar.bz2 minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.zip |
Implement proper font handling
Diffstat (limited to 'src/porting.cpp')
-rw-r--r-- | src/porting.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/porting.cpp b/src/porting.cpp index 2fc5d0364..42ee2ffe2 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -553,16 +553,7 @@ v2u32 getWindowSize() { #ifndef __ANDROID__ float getDisplayDensity() { - float gui_scaling = g_settings->getFloat("gui_scaling"); - // using Y here feels like a bug, this needs to be discussed later! - if (getWindowSize().Y <= 800) { - return (2.0/3.0) * gui_scaling; - } - if (getWindowSize().Y <= 1280) { - return 1.0 * gui_scaling; - } - - return (4.0/3.0) * gui_scaling; + return g_settings->getFloat("screen_dpi")/96.0; } v2u32 getDisplaySize() { |