Skip to content

Commit

Permalink
Fix opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
iota97 committed Aug 21, 2021
1 parent de68436 commit d0af527
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions UI/TouchControlLayoutScreen.cpp
Expand Up @@ -291,10 +291,8 @@ class PSPStickDragDrop : public DragDropButton {
}

void Draw(UIContext &dc) override {
float opacity = g_Config.iTouchButtonOpacity / 100.0f;

uint32_t colorBg = colorAlpha(GetButtonColor(), opacity);
uint32_t downBg = colorAlpha(0x00FFFFFF, opacity * 0.5f);
uint32_t colorBg = colorAlpha(GetButtonColor(), GetButtonOpacity());
uint32_t downBg = colorAlpha(0x00FFFFFF, GetButtonOpacity() * 0.5f);

const ImageID stickImage = g_Config.iTouchButtonStyle ? ImageID("I_STICK_LINE") : ImageID("I_STICK");
const ImageID stickBg = g_Config.iTouchButtonStyle ? ImageID("I_STICK_BG_LINE") : ImageID("I_STICK_BG");
Expand Down

0 comments on commit d0af527

Please sign in to comment.