GUI: Remove GuiObject::getMillis()
svn-id: r48241
This commit is contained in:
parent
6e78fdc161
commit
4fc8ebab01
8 changed files with 14 additions and 22 deletions
|
@ -170,7 +170,7 @@ void PopUpDialog::drawDialog() {
|
|||
|
||||
if (_openTime == 0) {
|
||||
// Time the popup was opened
|
||||
_openTime = getMillis();
|
||||
_openTime = g_system->getMillis();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -178,7 +178,7 @@ void PopUpDialog::handleMouseUp(int x, int y, int button, int clickCount) {
|
|||
// Mouse was released. If it wasn't moved much since the original mouse down,
|
||||
// let the popup stay open. If it did move, assume the user made his selection.
|
||||
int dist = (_clickX - x) * (_clickX - x) + (_clickY - y) * (_clickY - y);
|
||||
if (dist > 3 * 3 || getMillis() - _openTime > 300) {
|
||||
if (dist > 3 * 3 || g_system->getMillis() - _openTime > 300) {
|
||||
setResult(_selection);
|
||||
close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue