Skip to content

Commit

Permalink
Merge pull request #9 from Bexin3/8-issue-with-rendering-at-2n+1pi2
Browse files Browse the repository at this point in the history
Update SpeeduinoGL.cpp
  • Loading branch information
Bexin3 authored Jan 12, 2024
2 parents 4a8ed89 + 4f7cca0 commit 02aceaa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/SpeeduinoGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,16 @@ void TransferSquares(float ShiftH, float ShiftV, float zoom, float rotationRad)
return a.w < b.w;
});

if (square.A.w == square.B.w && square.A.h != square.D.h) {
std::swap(square.D.h, square.C.h);
if (square.A.w == square.B.w) {
if (Polarized == (square.A.h > square.B.h)) {
std::swap(square.A.h, square.B.h);
}


if (square.A.h != square.D.h) {
std::swap(square.D.h, square.C.h);
};

};


Expand Down

0 comments on commit 02aceaa

Please sign in to comment.