From 80975ea4b0a573127a9a7ae633c0fdf8cc3fd09a Mon Sep 17 00:00:00 2001 From: TANG Xiao Date: Sun, 6 Oct 2024 17:38:50 +0200 Subject: [PATCH] ProgressWidget: fix misalignment (#12526) --- frontend/ui/widget/progresswidget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/progresswidget.lua b/frontend/ui/widget/progresswidget.lua index 166164565..42674e702 100644 --- a/frontend/ui/widget/progresswidget.lua +++ b/frontend/ui/widget/progresswidget.lua @@ -141,7 +141,7 @@ function ProgressWidget:paintTo(bb, x, y) -- Otherwise, we have to start with the background. bb:paintRoundedRect(x, y, my_size.w, my_size.h, self.bgcolor, self.radius) -- Then the border around that. - bb:paintBorder(x, y, + bb:paintBorder(math.floor(x), math.floor(y), my_size.w, my_size.h, self.bordersize, self.bordercolor, self.radius) end