parent
66bbdbe6ec
commit
daf676b277
@ -205,6 +205,7 @@ namespace hex {
|
||||
|
||||
i64 sleepTicks = 0;
|
||||
i64 sleepMilliSeconds = 0;
|
||||
if (period > 0) {
|
||||
if (delta >= 0) {
|
||||
sleepTicks = delta / period;
|
||||
} else {
|
||||
@ -216,6 +217,8 @@ namespace hex {
|
||||
if (sleepTime >= 0.0) {
|
||||
Sleep(DWORD(sleepTime));
|
||||
}
|
||||
}
|
||||
|
||||
timeEndPeriod(granularity);
|
||||
|
||||
return WVR_REDRAW;
|
||||
|
Loading…
x
Reference in New Issue
Block a user