[b2g] How can I modifiy devicePixelRatio?

2015-07-29 Thread David Flanagan
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? Dav

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-29 Thread Tim Guan-tin Chien
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

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-30 Thread Kartikaya Gupta
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/scre

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-30 Thread Alexandre Lissy
Le 30/07/2015 01:48, David Flanagan a écrit : > 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 devicePi

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-30 Thread Punam Dahiya
Link below describes how to set high resolution image assets on a device using GAIA_DEV_PIXELS_PER_PX option with make command. I am not sure if this option works for high resolution Sony Z3C devices as it specifically mention Gaia is currently targetting the following screen resolutions: - qH

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-31 Thread Julien Wajsberg
Le 30/07/2015 19:12, Kartikaya Gupta a écrit : > 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. AFAIK it only selects the right images/videos to push to the device, so that eg image-based backgrounds do not

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-31 Thread 胡訓誠
On Fri, Jul 31, 2015 at 3:41 PM, Julien Wajsberg wrote: > Le 30/07/2015 19:12, Kartikaya Gupta a écrit : > > 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. > > AFAIK it only selects the right images/vide

Re: [b2g] How can I modifiy devicePixelRatio?

2015-07-31 Thread Naoki Hirata
http://mxr.mozilla.org/gaia/search?string=GAIA_DEV_PIXELS_PER_PX On Fri, Jul 31, 2015 at 2:45 AM, John Hu (胡訓誠) wrote: > > > On Fri, Jul 31, 2015 at 3:41 PM, Julien Wajsberg > wrote: > >> Le 30/07/2015 19:12, Kartikaya Gupta a écrit : >> > IIRC there's also a GAIA_DEV_PIXELS_PER_PX env variable