summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-31 17:39:05 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-31 17:39:05 +0000
commitc2aab432b172e0d1974139e62f64e36aa3dbfb85 (patch)
tree52f69bbf4c8bc83862fa2aad841d082b57fad35a
parent9634eec8e123c0860f2716039570dd91a9839943 (diff)
android: get BGR to RGB swap right in conversion
-rw-r--r--vcl/android/androidinst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index 02219c816cb1..b20d7c4b9300 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -231,9 +231,9 @@ static void BlitFrameRegionToWindow(ANativeWindow_Buffer *pOutBuffer,
nDestX * 4 /* dest pixel size */ );
for (unsigned int x = 0; x < (unsigned int)(aSrcRect.right - aSrcRect.left); x++)
{
- dp[x*4 + 0] = sp[x*3 + 0]; // B
+ dp[x*4 + 0] = sp[x*3 + 2]; // R
dp[x*4 + 1] = sp[x*3 + 1]; // G
- dp[x*4 + 2] = sp[x*3 + 2]; // R
+ dp[x*4 + 2] = sp[x*3 + 0]; // B
dp[x*4 + 3] = 255; // A
}
break;