mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix progress bars drawing their borders in the wrong place
Same problem as with textboxes solved in 3eb3481fda
.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user