mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
GUI: Fix regression in multicolumn PopUp widget
This commit is contained in:
parent
df009e9e59
commit
499e5ab3ea
@ -71,6 +71,10 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY)
|
||||
: Dialog(0, 0, 16, 16),
|
||||
_popUpBoss(boss) {
|
||||
|
||||
_openTime = 0;
|
||||
_buffer = nullptr;
|
||||
_entriesPerColumn = 1;
|
||||
|
||||
// Copy the selection index
|
||||
_selection = _popUpBoss->_selectedItem;
|
||||
|
||||
@ -142,10 +146,6 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY)
|
||||
// Remember original mouse position
|
||||
_clickX = clickX - _x;
|
||||
_clickY = clickY - _y;
|
||||
|
||||
_openTime = 0;
|
||||
_buffer = nullptr;
|
||||
_entriesPerColumn = 1;
|
||||
}
|
||||
|
||||
void PopUpDialog::drawDialog() {
|
||||
|
Loading…
Reference in New Issue
Block a user