summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlos_os2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/sdlos_os2.c')
-rw-r--r--src/osd/sdl/sdlos_os2.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/osd/sdl/sdlos_os2.c b/src/osd/sdl/sdlos_os2.c
index d21fe73545f..02fd9852538 100644
--- a/src/osd/sdl/sdlos_os2.c
+++ b/src/osd/sdl/sdlos_os2.c
@@ -38,9 +38,9 @@ static osd_ticks_t performance_cycle_counter(void);
//============================================================
// global cycle_counter function and divider
-static osd_ticks_t (*cycle_counter)(void) = init_cycle_counter;
-static osd_ticks_t (*ticks_counter)(void) = init_cycle_counter;
-static osd_ticks_t ticks_per_second;
+static osd_ticks_t (*cycle_counter)(void) = init_cycle_counter;
+static osd_ticks_t (*ticks_counter)(void) = init_cycle_counter;
+static osd_ticks_t ticks_per_second;
//============================================================
// init_cycle_counter
@@ -117,10 +117,10 @@ static osd_ticks_t init_cycle_counter(void)
static osd_ticks_t performance_cycle_counter(void)
{
- QWORD qwTime;
+ QWORD qwTime;
- DosTmrQueryTime( &qwTime );
- return (osd_ticks_t)qwTime.ulLo;
+ DosTmrQueryTime( &qwTime );
+ return (osd_ticks_t)qwTime.ulLo;
}
//============================================================
@@ -141,7 +141,7 @@ osd_ticks_t osd_ticks_per_second(void)
{
if (ticks_per_second == 0)
{
- return 1; // this isn't correct, but it prevents the crash
+ return 1; // this isn't correct, but it prevents the crash
}
return ticks_per_second;
}
@@ -177,11 +177,11 @@ void osd_sleep(osd_ticks_t duration)
int osd_get_num_processors(void)
{
- ULONG numprocs = 1;
+ ULONG numprocs = 1;
- DosQuerySysInfo(QSV_NUMPROCESSORS, QSV_NUMPROCESSORS, &numprocs, sizeof(numprocs));
+ DosQuerySysInfo(QSV_NUMPROCESSORS, QSV_NUMPROCESSORS, &numprocs, sizeof(numprocs));
- return numprocs;
+ return numprocs;
}
//============================================================