LURE : Fix for ID: 3030143 Unexpected game cursor behavior. Always refresh menu and screen when mouse is moved.

svn-id: r54747
This commit is contained in:
Lars Persson 2010-12-03 09:23:56 +00:00
parent a29adaa77c
commit 9163b9e032

View File

@ -584,12 +584,12 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) {
} else if (e.type() == Common::EVENT_LBUTTONDOWN || e.type() == Common::EVENT_MOUSEMOVE) {
int16 x = mouse.x();
int16 y = mouse.y() - yMiddle + (s->height() / 2);
refreshFlag = true;
if (r.contains(x, y)) {
selectedIndex = (y - r.top) / FONT_HEIGHT;
if (e.type() == Common::EVENT_LBUTTONDOWN)
goto bail_out;
else
refreshFlag = true;
}
#else
} else if ((e.type() == Common::EVENT_LBUTTONDOWN) ||