1
This commit is contained in:
parent
403fbb49bc
commit
01adda7e31
@ -256,7 +256,7 @@ namespace a8
|
||||
if (!timer) {
|
||||
abort();
|
||||
}
|
||||
long long remain_time = a8::XGetTickCount() - timer->expires;
|
||||
long long remain_time = timer->expires - a8::XGetTickCount();
|
||||
return std::max(remain_time, (long long)0);
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,7 @@ namespace a8
|
||||
if (!timer) {
|
||||
abort();
|
||||
}
|
||||
long long remain_time = get_tick_count_func_(context_) - timer->expires;
|
||||
long long remain_time = timer->expires - get_tick_count_func_(context_);
|
||||
return std::max(remain_time, (long long)0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user