# HG changeset patch # User Ryan C. Gordon # Date 1160297714 0 # Node ID 45e566003276c84a7e8a55d62a350a9fee38df9a # Parent 7c9663fb086067f44a61f6ca0dae252998c7603c This file probably got corrupted by a pretty printer at some point... diff -r 7c9663fb0860 -r 45e566003276 src/timer/os2/SDL_systimer.c --- a/src/timer/os2/SDL_systimer.c Sun Oct 08 01:39:01 2006 +0000 +++ b/src/timer/os2/SDL_systimer.c Sun Oct 08 08:55:14 2006 +0000 @@ -65,24 +65,28 @@ */ /* inline asm to avoid runtime inclusion */ _asm { - push edx - push eax - mov eax, dword ptr hires_now - mov edx, dword ptr hires_now + 4 - sub eax, dword ptr hires_start_ticks - sbb edx, dword ptr hires_start_ticks + 4 - mov ebx, 1000 - mov ecx, edx - mul ebx - push eax - push edx - mov eax, ecx - mul ebx - pop eax - add edx, eax - pop eax - mov ebx, dword ptr hires_ticks_per_second - div ebx mov dword ptr ticks, eax pop edx pop eax} + push edx + push eax + mov eax, dword ptr hires_now + mov edx, dword ptr hires_now + 4 + sub eax, dword ptr hires_start_ticks + sbb edx, dword ptr hires_start_ticks + 4 + mov ebx, 1000 + mov ecx, edx + mul ebx + push eax + push edx + mov eax, ecx + mul ebx + pop eax + add edx, eax + pop eax + mov ebx, dword ptr hires_ticks_per_second + div ebx + mov dword ptr ticks, eax + pop edx + pop eax + } return ticks; @@ -178,7 +182,7 @@ static int timer_alive = 0; static SDL_Thread *timer = NULL; -static int +static int SDLCALL RunTimer(void *unused) { DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);