mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Time: Change old u32
timestamps to 64-bit (#5818)
MacOSX build fix + cleanups
This commit is contained in:
@@ -2658,7 +2658,7 @@ void GUIFormSpecMenu::drawMenu()
|
||||
if (hovered != NULL) {
|
||||
s32 id = hovered->getID();
|
||||
|
||||
u32 delta = 0;
|
||||
u64 delta = 0;
|
||||
if (id == -1) {
|
||||
m_old_tooltip_id = id;
|
||||
m_old_tooltip = L"";
|
||||
@@ -3247,7 +3247,7 @@ bool GUIFormSpecMenu::DoubleClickDetection(const SEvent event)
|
||||
m_doubleclickdetect[1].time = porting::getTimeMs();
|
||||
}
|
||||
else if (event.MouseInput.Event == EMIE_LMOUSE_LEFT_UP) {
|
||||
u32 delta = porting::getDeltaMs(m_doubleclickdetect[0].time, porting::getTimeMs());
|
||||
u64 delta = porting::getDeltaMs(m_doubleclickdetect[0].time, porting::getTimeMs());
|
||||
if (delta > 400) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user