From a8039638aeb385f5aa9f4a0c3ee9dd639c2b8664 Mon Sep 17 00:00:00 2001 From: potatoad <35428633+potatoad@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:46:40 +0100 Subject: [PATCH] Convert floats to ints for fillRect --- src/core/Map.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Map.py b/src/core/Map.py index cea4842..8ba93be 100644 --- a/src/core/Map.py +++ b/src/core/Map.py @@ -247,10 +247,10 @@ def draw(self, p): self._render(p, way, tag) # Lastly, color the out of bounds regions white: T, B, L, R - p.fillRect(0, 0, w, yo, QColor(255, 255, 255)) - p.fillRect(0, h-yo, w, yo, QColor(255, 255, 255)) - p.fillRect(0, 0, xo, h, QColor(255, 255, 255)) - p.fillRect(w-xo, 0, xo, h, QColor(255, 255, 255)) + p.fillRect(0, 0, int(w), int(yo), QColor(255, 255, 255)) + p.fillRect(0, int(h-yo), int(w), int(yo), QColor(255, 255, 255)) + p.fillRect(0, 0, int(xo), int(h), QColor(255, 255, 255)) + p.fillRect(int(w-xo), 0, int(xo), int(h), QColor(255, 255, 255)) """ ###########################################################################