changeset 63:8063b19bd40e

Attempt to fix GetTicks compile error on Windows (can't do math on a struct). Taking the QuadPart of the struct. SDL seems to do something similar. Thanks to Johnson Lin reporting this issue! Johnson Lin < arch . jslin - at - gmail . com >
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 19 Jun 2012 00:31:36 -0700
parents 7a4a8459f0c1
children aace3301c8d1
files ALmixer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ALmixer.c	Tue Jun 19 00:31:12 2012 -0700
+++ b/ALmixer.c	Tue Jun 19 00:31:36 2012 -0700
@@ -307,7 +307,7 @@
 			if(TRUE == QueryPerformanceFrequency(&hi_res_ticks_per_second))
 			{
 				QueryPerformanceCounter(&s_ticksBaseTime);
-				s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second;
+				s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second.QuadPart;
 			}
 			else
 			{