From fb35782b9edea6515eeb16007fff315e04274e1f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 31 Jul 2023 19:07:08 +0200 Subject: [PATCH] Fix cppkore progress bar 'roundings' showing as inverted when progress is null Just don't render the fill if progress is still null. --- r5dev/thirdparty/cppnet/cppkore/KoreTheme.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r5dev/thirdparty/cppnet/cppkore/KoreTheme.cpp b/r5dev/thirdparty/cppnet/cppkore/KoreTheme.cpp index f38e9c14..d9a15411 100644 --- a/r5dev/thirdparty/cppnet/cppkore/KoreTheme.cpp +++ b/r5dev/thirdparty/cppnet/cppkore/KoreTheme.cpp @@ -144,6 +144,10 @@ namespace Themes void KoreTheme::RenderControlProgressFill(const std::unique_ptr& EventArgs, Forms::Control* Ctrl, UIX::UIXRenderState State, uint32_t Progress) const { + // Nothing to render + if (!Progress) + return; + // Bring client rect to stack Drawing::Rectangle Rect(Ctrl->ClientRectangle());