Disabled (forced to 1) broken scaling on Linux Qt environments.

This commit is contained in:
Vality 2013-09-09 23:48:08 +01:00
parent 997aae346b
commit c9dcf024b9

View file

@ -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__