mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed a small rounding issue in GuiThemeDownloader
This commit is contained in:
parent
9106013ade
commit
e1c78f1932
|
@ -528,14 +528,14 @@ void GuiThemeDownloader::update(int deltaTime)
|
|||
if (mFetching) {
|
||||
int progress {mReceivedObjectsProgress != 1.0f ? 0 : 100};
|
||||
if (mReceivedObjectsProgress != 1.0f) {
|
||||
progress = std::round(static_cast<int>(
|
||||
glm::mix(0.0f, 100.0f, static_cast<float>(mReceivedObjectsProgress))));
|
||||
progress = static_cast<int>(
|
||||
std::round(glm::mix(0.0f, 100.0f, static_cast<float>(mReceivedObjectsProgress))));
|
||||
const std::string progressText {std::to_string(progress) + "%"};
|
||||
mBusyAnim.setText(progressText);
|
||||
}
|
||||
else if (mReceivedObjectsProgress != 0.0f) {
|
||||
progress = std::round(static_cast<int>(
|
||||
glm::mix(0.0f, 100.0f, static_cast<float>(mResolveDeltaProgress))));
|
||||
progress = static_cast<int>(
|
||||
std::round(glm::mix(0.0f, 100.0f, static_cast<float>(mResolveDeltaProgress))));
|
||||
const std::string progressText {std::to_string(progress) + "%"};
|
||||
mBusyAnim.setText(progressText);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue