From 5c5354655c1f21af89d8b99be49bc42d6d0a0477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 9 May 2023 22:54:41 +0200 Subject: [PATCH] Fix progress bars drawing their borders in the wrong place Same problem as with textboxes solved in 3eb3481fda5a. --- src/gui/interface/ProgressBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/interface/ProgressBar.cpp b/src/gui/interface/ProgressBar.cpp index 3f474a9fc..86a2e0400 100644 --- a/src/gui/interface/ProgressBar.cpp +++ b/src/gui/interface/ProgressBar.cpp @@ -46,7 +46,7 @@ void ProgressBar::Draw(const Point & screenPos) ui::Colour progressBarColour = style::Colour::WarningTitle; - g->DrawRect(RectSized(Position, Size), 0xFFFFFF_rgb); + g->DrawRect(RectSized(screenPos, Size), 0xFFFFFF_rgb); if(progress!=-1) {