Skip to content

Commit

Permalink
Revert "fix corner of rectangles"
Browse files Browse the repository at this point in the history
This reverts commit 834e260.
  • Loading branch information
karjonas committed Feb 4, 2023
1 parent 856abea commit 425045c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GlobalState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ std::vector<Point> calc_user_rectangle_points(double x, double y, bool flip, int
int sign = flip ? 1 : -1;

Point p0{x - rect_half, y };
Point p1{x - rect_half - 0.5, y + sign*rect_size };
Point p1{x - rect_half, y + sign*rect_size };
Point p2{x + rect_half, y + sign*rect_size };
Point p3{x + rect_half, y };

Expand All @@ -38,7 +38,7 @@ std::vector<Point> calc_user_tall_rectangle_points(double x, double y, bool flip
int sign = flip ? 1.0 : -1.0;

Point p0{x - rect_4th, y };
Point p1{x - rect_4th - 0.5, y + sign*rect_size*2};
Point p1{x - rect_4th, y + sign*rect_size*2};
Point p2{x + rect_4th, y + sign*rect_size*2};
Point p3{x + rect_4th, y };

Expand Down

0 comments on commit 425045c

Please sign in to comment.