Commit 9a13ffa9 authored by Jonas Höglund's avatar Jonas Höglund

android: mask out only RGB channels of background colour

parent 5cc79707
...@@ -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