The layout.css.devPixelsPerPx should do the job, but note that (1) it's a string pref, so you should set "1.0" as the value rather than 1, and (2) there's some code in the b2g chrome that might be clobbering the value you set, at http://mxr.mozilla.org/mozilla-central/source/b2g/chrome/content/screen.js?rev=5747865276f1#131 - you may need to disable that code for your changes to actually take effect.
IIRC there's also a GAIA_DEV_PIXELS_PER_PX env variable for gaia and I'm not entirely sure what that does, it may or may not be related. kats On Thu, Jul 30, 2015 at 1:49 AM, Tim Guan-tin Chien <[email protected]> wrote: > Should be > https://dxr.mozilla.org/mozilla-central/source/widget/gonk/nsWindow.cpp#706-721 > But the pref is supposed to be able to overwrite values from here... > don't know what's wrong there. > > My previous experience (~v1.1) was that there will be many graphics > glitches when one attempt to modify this value, but they might be > already fixed I think. > > > > On Thu, Jul 30, 2015 at 7:48 AM, David Flanagan <[email protected]> wrote: >> I'm trying to create a hacked version of FirefoxOS that runs on an Aries >> device but has a devicePixelRatio of 1. >> >> I've tried editing prefs to set layout.css.devPixelsPerPx to 1, but that >> doesn't work. >> >> Can anyone tell me where the devicePixelRatio value comes from and how it >> can be modified? >> >> David >> >> _______________________________________________ >> dev-b2g mailing list >> [email protected] >> https://lists.mozilla.org/listinfo/dev-b2g >> > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
