From 425045c3d859e487198531aa5db1fd7ba816aa2a Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Sat, 4 Feb 2023 17:03:10 +0100 Subject: [PATCH] Revert "fix corner of rectangles" This reverts commit 834e260f3c51846a5f9019c4148bbb32e85deac6. --- src/GlobalState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GlobalState.cpp b/src/GlobalState.cpp index 7b49d14..dc3e362 100644 --- a/src/GlobalState.cpp +++ b/src/GlobalState.cpp @@ -11,7 +11,7 @@ std::vector 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 }; @@ -38,7 +38,7 @@ std::vector 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 };