diff --git a/es-app/src/guis/GuiThemeDownloader.cpp b/es-app/src/guis/GuiThemeDownloader.cpp index 3cbf8528d..d3f380d86 100644 --- a/es-app/src/guis/GuiThemeDownloader.cpp +++ b/es-app/src/guis/GuiThemeDownloader.cpp @@ -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( - glm::mix(0.0f, 100.0f, static_cast(mReceivedObjectsProgress)))); + progress = static_cast( + std::round(glm::mix(0.0f, 100.0f, static_cast(mReceivedObjectsProgress)))); const std::string progressText {std::to_string(progress) + "%"}; mBusyAnim.setText(progressText); } else if (mReceivedObjectsProgress != 0.0f) { - progress = std::round(static_cast( - glm::mix(0.0f, 100.0f, static_cast(mResolveDeltaProgress)))); + progress = static_cast( + std::round(glm::mix(0.0f, 100.0f, static_cast(mResolveDeltaProgress)))); const std::string progressText {std::to_string(progress) + "%"}; mBusyAnim.setText(progressText); }