Fix cppkore progress bar 'roundings' showing as inverted when progress is null

Just don't render the fill if progress is still null.
This commit is contained in:
Kawe Mazidjatari 2023-07-31 19:07:08 +02:00
parent 9a23ab68ec
commit fb35782b9e

View File

@ -144,6 +144,10 @@ namespace Themes
void KoreTheme::RenderControlProgressFill(const std::unique_ptr<Forms::PaintEventArgs>& 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());