bugfix: Fixed slider background color after guisan updates

This commit is contained in:
Dimitris Panokostas 2024-09-10 21:40:13 +02:00
parent 522f2bd71e
commit 9094f9fe67
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -135,10 +135,8 @@ namespace gcn
faceColor.a = alpha;
auto backCol = getBackgroundColor();
if (isEnabled())
if (!isEnabled())
backCol = backCol - 0x303030;
else
backCol = faceColor - 0x101010;
graphics->setColor(backCol);
graphics->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight()));