diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-01 00:18:48 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-01 00:37:20 +0200 |
commit | 1e254b3a508eb7b99ace65587fc0e5719efca801 (patch) | |
tree | bf564bb9fd58f9460a64f3294230756ec0aac378 /vcl/android | |
parent | 429827a3e83121cbddd99e1f0df3611203f04171 (diff) |
The RGBA bytes are already in the order we want
Change-Id: Ib4434400b110f8056b3291c0d48fe6548a7a9e8e
Diffstat (limited to 'vcl/android')
-rw-r--r-- | vcl/android/androidinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx index 4b7b5ae45c73..ab6278a1b197 100644 --- a/vcl/android/androidinst.cxx +++ b/vcl/android/androidinst.cxx @@ -236,9 +236,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*4 + 2]; // R + dp[x*4 + 0] = sp[x*4 + 0]; // R dp[x*4 + 1] = sp[x*4 + 1]; // G - dp[x*4 + 2] = sp[x*4 + 0]; // B + dp[x*4 + 2] = sp[x*4 + 2]; // B dp[x*4 + 3] = 255; // A } break; |