mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 09:29:16 +01:00
Fix OSC incorrect pressed alpha when low values are used
OSC would "light up" when the alpha value was low because of the value being coerced to an arbitrary range. Divide the alpha value by 3 instead.
This commit is contained in:
parent
d69c9f472f
commit
2556b25ebf
@ -123,7 +123,7 @@ abstract class OnScreenButton(
|
||||
|
||||
open fun render(canvas : Canvas) {
|
||||
val bounds = currentBounds
|
||||
val alpha = if (isPressed) (config.alpha - 130).coerceIn(30..255) else config.alpha
|
||||
val alpha = if (isPressed) config.alpha / 3 else config.alpha
|
||||
renderColors(drawable)
|
||||
drawable.apply {
|
||||
this.bounds = bounds
|
||||
|
Loading…
Reference in New Issue
Block a user