GUI: Remove highlighting when button widget is pressed

Without this, buttons would stay highlighted after being un-pressed.
Fixes #7094.
This commit is contained in:
Ori Avtalion 2016-04-13 13:08:36 +03:00
parent 25c380f92e
commit 92b7a86e1f

View File

@ -356,6 +356,7 @@ void ButtonWidget::handleTickle() {
void ButtonWidget::setPressedState() {
wantTickle(true);
setFlags(WIDGET_PRESSED);
clearFlags(WIDGET_HILITED);
draw();
}