Fix progress bars drawing their borders in the wrong place

Same problem as with textboxes solved in 3eb3481fda.
This commit is contained in:
Tamás Bálint Misius 2023-05-09 22:54:41 +02:00
parent 0e3968af0b
commit 5c5354655c
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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)
{