mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22:41 +01:00
DroidFish: Disable hardware acceleration in the color picker. A
ComposeShader using two LinearGradient shaders is not supported when using hardware acceleration.
This commit is contained in:
@@ -196,7 +196,7 @@ public class ColorPickerView extends View {
|
|||||||
mAlphaTextPaint.setTextAlign(Align.CENTER);
|
mAlphaTextPaint.setTextAlign(Align.CENTER);
|
||||||
mAlphaTextPaint.setFakeBoldText(true);
|
mAlphaTextPaint.setFakeBoldText(true);
|
||||||
|
|
||||||
|
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private float calculateRequiredOffset(){
|
private float calculateRequiredOffset(){
|
||||||
|
|||||||
Reference in New Issue
Block a user