mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-14 02:18:46 +02: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
3bce1f4c61
commit
db7d9aa60e
|
@ -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