summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/ui.c
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-08-15 17:55:59 +0200
committer couriersud <couriersud@arcor.de>2015-08-15 17:56:10 +0200
commitfe8e6aca657f202daf91ad83cc1427296b50615e (patch)
treea516d55f859b90bc1ebef65be61ff10cf7040dfa /src/emu/ui/ui.c
parent55592b6c785b36a9684800e0ccc7111603f958ed (diff)
Added seconds() and attoseconds() to attotime and prefixed members with
m_. Rewrote code accessing members to use seconds() and attoseconds(). The changes were triggered by a test how gcc __int128_t would perform as the internal representation. This test revealed that the current implementation is still faster. (nw)
Diffstat (limited to 'src/emu/ui/ui.c')
-rw-r--r--src/emu/ui/ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui/ui.c b/src/emu/ui/ui.c
index 8cb98399b04..95b51f24bab 100644
--- a/src/emu/ui/ui.c
+++ b/src/emu/ui/ui.c
@@ -1251,7 +1251,7 @@ std::string &ui_manager::game_info_astring(std::string &str)
strcatprintf(str, "%d " UTF8_MULTIPLY " %d (%s) %f" UTF8_NBSP "Hz\n",
visarea.width(), visarea.height(),
(machine().system().flags & ORIENTATION_SWAP_XY) ? "V" : "H",
- ATTOSECONDS_TO_HZ(screen->frame_period().attoseconds));
+ ATTOSECONDS_TO_HZ(screen->frame_period().attoseconds()));
}
}
}
@@ -2084,8 +2084,8 @@ static INT32 slider_refresh(running_machine &machine, void *arg, std::string *st
screen->configure(width, height, visarea, HZ_TO_ATTOSECONDS(defrefresh + (double)newval * 0.001));
}
if (str != NULL)
- strprintf(*str,"%.3ffps", ATTOSECONDS_TO_HZ(machine.first_screen()->frame_period().attoseconds));
- refresh = ATTOSECONDS_TO_HZ(machine.first_screen()->frame_period().attoseconds);
+ strprintf(*str,"%.3ffps", ATTOSECONDS_TO_HZ(machine.first_screen()->frame_period().attoseconds()));
+ refresh = ATTOSECONDS_TO_HZ(machine.first_screen()->frame_period().attoseconds());
return floor((refresh - defrefresh) * 1000.0 + 0.5);
}