mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Tidied up a bit of android code and resaved the demo project.
This commit is contained in:
parent
43ce64a099
commit
f4fe4c5749
2 changed files with 21 additions and 9 deletions
|
|
@ -334,14 +334,14 @@ public class JuceAppActivity extends Activity
|
|||
|
||||
// swap red and blue colours to match internal opengl texture format
|
||||
ColorMatrix colorMatrix = new ColorMatrix();
|
||||
float[] colorTransform =
|
||||
{0, 0, 1.0f, 0, 0,
|
||||
0, 1.0f, 0, 0, 0,
|
||||
1.0f, 0, 0, 0, 0,
|
||||
0, 0, 0, 1.0f, 0};
|
||||
|
||||
float[] colorTransform = { 0, 0, 1.0f, 0, 0,
|
||||
0, 1.0f, 0, 0, 0,
|
||||
1.0f, 0, 0, 0, 0,
|
||||
0, 0, 0, 1.0f, 0 };
|
||||
|
||||
colorMatrix.set (colorTransform);
|
||||
ColorMatrixColorFilter colorFilter = new ColorMatrixColorFilter (colorMatrix);
|
||||
paint.setColorFilter (colorFilter);
|
||||
paint.setColorFilter (new ColorMatrixColorFilter (colorMatrix));
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue