GUI: Button press graphics not working after subdialog close
|Reported by:||lordhoto||Owned by:|
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.