GUI: Button press graphics not working after subdialog close
|Reported by:||lordhoto||Owned by:|
Linux/amd64 g++ 4.7.0 commit: b96143c1802b619553e476ad7a5a1eedeea0c768 theme: scummmodern
The special pressed button graphics is not always displaying. An easy way to reproduce this is start ScummVM, click on the "Options..." button, close the options dialog and click on the "Options..." button again and hold the mouse key down to avoid the dialog from opening. The button only appears pressed the first time when you click on "Options..." directly after starting ScummVM for me. After closing the dialog I was not able to get the "Options..." button from getting the pressed look.
As far as I can tell the "_lastTime" member of ButtonWidget of the button for "Options..." does not get properly set to 0 again when a the options dialog opens. This might be related, since ButtonWidget::handleTickle disables the pressed state after some time, when "_lastTime" is not 0.
Ticket imported from: #3523325. Ticket imported from: bugs/6028.