winedos: Improve PIT emulation.
Florian Tobias Schandinat
FlorianSchandinat at gmx.de
Tue Feb 3 11:37:58 CST 2009
Alexandre Julliard schrieb:
> Florian Tobias Schandinat <FlorianSchandinat at gmx.de> writes:
>
>> + /* Convert: time counter -> PIT counter
>> + * GetSystemTimeAsFileTime: 10000000 Hz
>> + * PIT frequency: 1193182 Hz */
>> + val = (DWORD)(val - delta*1193182./10000000.) % (maxval + 1);
>
> You should probably use QueryPerformanceCounter as it already uses the
> correct frequency.
Thanks, will change it and resend the patch with some minor changes.
More information about the wine-devel
mailing list