Previous 199869 Revisions Next

r31852 Monday 1st September, 2014 at 01:55:58 UTC by R. Belmont
SDL: init timebase the first time it's needed on Windows, Mac, and OS/2 targets. [R. Belmont]
[src/osd/sdl]sdlos_macosx.c sdlos_os2.c sdlos_win32.c

trunk/src/osd/sdl/sdlos_macosx.c
r31851r31852
107107{
108108   if (ticks_per_second == 0)
109109   {
110      return 1;   // this isn't correct, but it prevents the crash
110      // if we haven't computed the value yet, there's no time like the present
111      init_cycle_counter();
111112   }
112113   return ticks_per_second;
113114}
trunk/src/osd/sdl/sdlos_win32.c
r31851r31852
127127{
128128   if (ticks_per_second == 0)
129129   {
130      return 1;   // this isn't correct, but it prevents the crash
130      // if we haven't computed the value yet, there's no time like the present
131      init_cycle_counter();
131132   }
132133   return ticks_per_second;
133134}
trunk/src/osd/sdl/sdlos_os2.c
r31851r31852
141141{
142142   if (ticks_per_second == 0)
143143   {
144      return 1;   // this isn't correct, but it prevents the crash
144      // if we haven't computed the value yet, there's no time like the present
145      init_cycle_counter();
145146   }
146147   return ticks_per_second;
147148}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team