From 0c3c6094420787c4f4cbd86a0ebe41c2ade838ee Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 6 Aug 2003 00:28:00 +0000 Subject: get rid of some g_system usage svn-id: r9529 --- gui/PopUpWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/PopUpWidget.cpp') diff --git a/gui/PopUpWidget.cpp b/gui/PopUpWidget.cpp index dfd168bd47..96dc9f1581 100644 --- a/gui/PopUpWidget.cpp +++ b/gui/PopUpWidget.cpp @@ -104,7 +104,7 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY) _clickY = clickY - _y; // Time the popup was opened - _openTime = g_system->get_msecs(); + _openTime = _gui->get_time(); } void PopUpDialog::drawDialog() { @@ -127,7 +127,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 || g_system->get_msecs() - _openTime > 300) { + if (dist > 3 * 3 || _gui->get_time() - _openTime > 300) { setResult(_selection); close(); } -- cgit v1.2.3