From 74a88a69ad765cf085e5262c3391dcf9f9e915b4 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Thu, 3 Mar 2022 10:39:54 +0100 Subject: [PATCH] Fixed #8 - Rotator map transformation Warning --- ui/RotatorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/RotatorWidget.cpp b/ui/RotatorWidget.cpp index 4ed847e7..6c03ede2 100644 --- a/ui/RotatorWidget.cpp +++ b/ui/RotatorWidget.cpp @@ -101,7 +101,7 @@ void RotatorWidget::redrawMap() x3 = x3 < 0 ? x3 + source.width() : x3; int y3 = static_cast(t * static_cast(source.height())) % source.height(); - y3 = y3 < 0 ? y3 + source.width() : y3; + y3 = y3 < 0 ? y3 + source.height() : y3; map.setPixelColor(x, y, source.pixelColor(x3, y3)); }