Le 12/12/2013 09:34, Manjunatha M a écrit :
> Hi,
> 
> On my device, with FFX 1.3, I am having issues getting width and height.
> 
> in GonkDisplayJB.cpp constructor, When getting the values from android HAL,
> I get the width = 720, Height = 1280, xdpi = 160.
> 
>         mHwc->getDisplayAttributes(mHwc, 0, 0, attrs, values);
>         mWidth = values[0];
>         mHeight = values[1];
>         xdpi = values[2] / 1000.0f;
> 
> But the real values of the device are width = 720, height = 1280, and xdpi
> = 320.
> 
> I am getting the dpi value wrong from android layer. However, I am using
> system property in GetDPI function to hardcode it to 320.

I suspect there might be a bug here, but you worked it around by relying
on the property, so it should be correct in the end.

> 
> But, here I have one more issue. When I connect to the Firefox debugger, I
> could see it as 360x640 with 320 dpi (reading from the system property,
> actually the framework returns 160).
> 
> Width is reduced by half, height is reduced by half. As per
> GonkDisplayJB.cpp it should have to be 720x1280.

I think you are getting mislead by
https://bugzilla.mozilla.org/show_bug.cgi?id=933170

360x640 is the Gecko CSS pixel resolution and seems to be correct.

> 
>  How could that be possible? I need inputs to correct this value should in
> the debugger as it is causing the issues in the camera app.
> 

What kind of issue is it causing ?
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to