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.
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.
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.
--
Regards,
Manjunatha
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g