Bug 686450 - Hard-code layout DPI on Maemo [r=mbrubeck]
authorFlorian Hänel <florian.haenel@heeen.de>
Tue, 13 Sep 2011 07:10:11 -0700
changeset 76911 ee3f64275f289fdf90d20f4e7d65a962ac322620
parent 76910 e864670fad4e29229ebd1fa492f81fc318caa85b
child 76912 ee7c98d1ec1badbd5202d78ef43c6a23cf65c8f8
push id21154
push usereakhgari@mozilla.com
push dateTue, 13 Sep 2011 19:43:58 +0000
treeherdermozilla-central@d86ee57cdbcc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs686450
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 686450 - Hard-code layout DPI on Maemo [r=mbrubeck]
mobile/app/mobile.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -73,19 +73,21 @@ pref("toolkit.zoomManager.zoomValues", "
 // Device pixel to CSS px ratio, in percent. Set to -1 to calculate based on display density.
 pref("browser.viewport.scaleRatio", -1);
 pref("browser.viewport.desktopWidth", 980);
 
 #ifndef ANDROID
 #ifndef MOZ_PLATFORM_MAEMO
 // On desktop builds, simulate an MDPI tablet by default.
 pref("layout.css.dpi", 160);
+#else
+// Maemo X11 lies about its dpi
+pref("layout.css.dpi", 240);
 #endif
 #endif
-
 /* allow scrollbars to float above chrome ui */
 pref("ui.scrollbarsCanOverlapContent", 1);
 
 /* use long press to display a context menu */
 pref("ui.click_hold_context_menus", true);
 
 /* cache prefs */
 pref("browser.cache.disk.enable", false);