mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 02:41:49 -05:00
hle: service: nvflinger: Fix implicit conversion.
This commit is contained in:
parent
02282477e7
commit
6d160873c4
1 changed files with 4 additions and 1 deletions
|
@ -298,7 +298,10 @@ s64 NVFlinger::GetNextTicks() const {
|
||||||
speed_scale = 0.01f;
|
speed_scale = 0.01f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return static_cast<s64>(((1000000000 * (1LL << swap_interval)) / max_hertz) * speed_scale);
|
|
||||||
|
const auto next_ticks = ((1000000000 * (1LL << swap_interval)) / max_hertz);
|
||||||
|
|
||||||
|
return static_cast<s64>(speed_scale * static_cast<float>(next_ticks));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Service::NVFlinger
|
} // namespace Service::NVFlinger
|
||||||
|
|
Loading…
Reference in a new issue