Skip to content

Commit

Permalink
Fixed high-contrast missing on C-Stick on classic skin
Browse files Browse the repository at this point in the history
  • Loading branch information
bkacjios committed Jul 9, 2021
1 parent a8b81fe commit 8646e90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/overlay/skins/classic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ local BUTTON_TEXTURES = {
},
CSTICK = {
GATE = graphics.newImage("textures/buttons/c-stick-gate.png"),
GATE_FILLED = graphics.newImage("textures/buttons/c-stick-gate-filled.png"),
STICK = graphics.newImage("textures/buttons/c-stick-solid.png"),
},
A = {
Expand Down Expand Up @@ -296,7 +297,7 @@ function SKIN:Paint(controller)

graphics.setColor(255, 235, 0, 255)

graphics.easyDraw(BUTTON_TEXTURES.CSTICK.GATE, 48 + 128, 52, 0, 128, 128)
graphics.easyDraw(SETTINGS:IsHighContrast() and BUTTON_TEXTURES.CSTICK.GATE_FILLED or BUTTON_TEXTURES.CSTICK.GATE, 48 + 128, 52, 0, 128, 128)

perspective.on()
perspective.quad(BUTTON_TEXTURES.CSTICK.STICK, rotated[1], rotated[2], rotated[3], rotated[4])
Expand Down

0 comments on commit 8646e90

Please sign in to comment.