mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fixed warning in Timer.cpp/MSVC. Enabled unicode character set in MSVC release builds.
This commit is contained in:
@@ -94,7 +94,7 @@
|
|||||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
CharacterSet="2"
|
CharacterSet="1"
|
||||||
WholeProgramOptimization="1"
|
WholeProgramOptimization="1"
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace sdl
|
|||||||
QueryPerformanceFrequency(&temp);
|
QueryPerformanceFrequency(&temp);
|
||||||
freq = temp.QuadPart;
|
freq = temp.QuadPart;
|
||||||
__int64 secs = ticks/freq;
|
__int64 secs = ticks/freq;
|
||||||
__int64 usecs = (ticks%freq)/(freq/1000000.0f);
|
__int64 usecs = static_cast<__int64>((ticks%freq)/(freq/1000000.0f));
|
||||||
return secs%86400 + usecs/1000000.0f;
|
return secs%86400 + usecs/1000000.0f;
|
||||||
#else
|
#else
|
||||||
timeval t;
|
timeval t;
|
||||||
|
|||||||
Reference in New Issue
Block a user