From e1c78f1932583292cdeb0ec8d54b349960ea4501 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 22 Mar 2023 22:40:14 +0100 Subject: [PATCH] Fixed a small rounding issue in GuiThemeDownloader --- es-app/src/guis/GuiThemeDownloader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }