Commit bcc1b1f7 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau Committed by GitHub

Merge pull request #172 from PiJaAB/android-canvas-fix

android: mask out only RGB channels of background colour
parents 5cc79707 9a13ffa9
...@@ -265,7 +265,7 @@ public class GLCanvas extends GLSurfaceView ...@@ -265,7 +265,7 @@ public class GLCanvas extends GLSurfaceView
@Override @Override
public void setBackgroundColor(int color) { public void setBackgroundColor(int color) {
super.setBackgroundColor(color); super.setBackgroundColor(color & 0xFFFFFF);
if (color == Color.TRANSPARENT) { if (color == Color.TRANSPARENT) {
this.getHolder().setFormat(PixelFormat.TRANSLUCENT); this.getHolder().setFormat(PixelFormat.TRANSLUCENT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment