| 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 |
| r31851 | r31852 | |
|---|---|---|
| 107 | 107 | { |
| 108 | 108 | if (ticks_per_second == 0) |
| 109 | 109 | { |
| 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(); | |
| 111 | 112 | } |
| 112 | 113 | return ticks_per_second; |
| 113 | 114 | } |
| r31851 | r31852 | |
|---|---|---|
| 127 | 127 | { |
| 128 | 128 | if (ticks_per_second == 0) |
| 129 | 129 | { |
| 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(); | |
| 131 | 132 | } |
| 132 | 133 | return ticks_per_second; |
| 133 | 134 | } |
| r31851 | r31852 | |
|---|---|---|
| 141 | 141 | { |
| 142 | 142 | if (ticks_per_second == 0) |
| 143 | 143 | { |
| 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(); | |
| 145 | 146 | } |
| 146 | 147 | return ticks_per_second; |
| 147 | 148 | } |
| Previous | 199869 Revisions | Next |