From fa10aae32fcbb88236d33ea554c8e99eb3ad98c5 Mon Sep 17 00:00:00 2001 From: Sacha Date: Mon, 11 Feb 2013 00:42:12 +1000 Subject: [PATCH] Use fixed DPI on Symbian. New devices seem to lie about DPI. --- base/QtMain.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/base/QtMain.cpp b/base/QtMain.cpp index dd9b29832b..c9a74a3e40 100644 --- a/base/QtMain.cpp +++ b/base/QtMain.cpp @@ -41,14 +41,10 @@ void SimulateGamepad(InputState *input) { float CalculateDPIScale() { - // Calculate DPI from TWIPS on Symbian + // Sane default for Symbian, Blackberry and Meego #ifdef __SYMBIAN32__ - TSize sTwips = CEikonEnv::Static()->ScreenDevice()->SizeInTwips(); - float dpi = sqrt((float)(pixel_xres*pixel_xres + pixel_yres*pixel_yres)) - / (sqrt((float)(sTwips.iHeight*sTwips.iHeight + sTwips.iWidth*sTwips.iWidth)) / KTwipsPerInch); - return dpi / 160.0f; + return 1.3f; #else - // Sane default for Blackberry and Meego return 1.2f; #endif }