1
0
Fork 0
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:
jules 2015-05-22 11:29:44 +01:00
parent 43ce64a099
commit f4fe4c5749
2 changed files with 21 additions and 9 deletions

View file

@ -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));
}
//==============================================================================