mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
SDL: init timebase the first time it's needed on Windows, Mac, and OS/2 targets. [R. Belmont]
This commit is contained in:
parent
dad3fa9540
commit
20e7944065
@ -107,7 +107,8 @@ osd_ticks_t osd_ticks_per_second(void)
|
||||
{
|
||||
if (ticks_per_second == 0)
|
||||
{
|
||||
return 1; // this isn't correct, but it prevents the crash
|
||||
// if we haven't computed the value yet, there's no time like the present
|
||||
init_cycle_counter();
|
||||
}
|
||||
return ticks_per_second;
|
||||
}
|
||||
|
@ -141,7 +141,8 @@ osd_ticks_t osd_ticks_per_second(void)
|
||||
{
|
||||
if (ticks_per_second == 0)
|
||||
{
|
||||
return 1; // this isn't correct, but it prevents the crash
|
||||
// if we haven't computed the value yet, there's no time like the present
|
||||
init_cycle_counter();
|
||||
}
|
||||
return ticks_per_second;
|
||||
}
|
||||
|
@ -127,7 +127,8 @@ osd_ticks_t osd_ticks_per_second(void)
|
||||
{
|
||||
if (ticks_per_second == 0)
|
||||
{
|
||||
return 1; // this isn't correct, but it prevents the crash
|
||||
// if we haven't computed the value yet, there's no time like the present
|
||||
init_cycle_counter();
|
||||
}
|
||||
return ticks_per_second;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user