Skip to content

Commit

Permalink
Fixed #8 - Rotator map transformation Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Mar 3, 2022
1 parent 712929f commit 74a88a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/RotatorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void RotatorWidget::redrawMap()
x3 = x3 < 0 ? x3 + source.width() : x3;

int y3 = static_cast<int>(t * static_cast<double>(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));
}
Expand Down

0 comments on commit 74a88a6

Please sign in to comment.