Bug 803299 - Enable 32-bit colour on Android. r=kats

This commit is contained in:
Chris Lord
2013-05-02 18:25:16 +01:00
parent a456316dde
commit 5962935c94
9 changed files with 122 additions and 17 deletions

View File

@@ -45,9 +45,7 @@ nsScreenAndroid::GetAvailRect(int32_t *outLeft, int32_t *outTop, int32_t *outWid
NS_IMETHODIMP
nsScreenAndroid::GetPixelDepth(int32_t *aPixelDepth)
{
// XXX do we need to lie here about 16bpp? Or
// should we actually check and return the right thing?
*aPixelDepth = 16;
*aPixelDepth = AndroidBridge::Bridge()->GetScreenDepth();
return NS_OK;
}