From c9dcf024b922b8866e69dcf9d76ad6e16f9a8a35 Mon Sep 17 00:00:00 2001 From: Vality Date: Mon, 9 Sep 2013 23:48:08 +0100 Subject: [PATCH] Disabled (forced to 1) broken scaling on Linux Qt environments. --- base/QtMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/QtMain.cpp b/base/QtMain.cpp index 5170f1c99b..11d12ffd4f 100644 --- a/base/QtMain.cpp +++ b/base/QtMain.cpp @@ -84,8 +84,11 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) res.transpose(); pixel_xres = res.width(); pixel_yres = res.height(); - +#ifdef defined(Q_WS_X11) + g_dpi_scale = 1.0f; +#else g_dpi_scale = CalculateDPIScale(); +#endif dp_xres = (int)(pixel_xres * g_dpi_scale); dp_yres = (int)(pixel_yres * g_dpi_scale); net::Init(); #ifdef __SYMBIAN32__