Shapes rotation improvement with centered too
Avoid shapes flipping upside-down during rotation step, when stretching from right-to-left -- also when using the original, center-based shape stretching mode.
This commit is contained in:
parent
0376ed8543
commit
40033c7632
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
June 14, 2002 - August 28, 2020
|
June 14, 2002 - August 30, 2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -13262,7 +13262,7 @@ static int shape_rotation(int ctr_x, int ctr_y, int ox, int oy)
|
||||||
|
|
||||||
deg = (atan2(oy - ctr_y, ox - ctr_x) * 180 / M_PI);
|
deg = (atan2(oy - ctr_y, ox - ctr_x) * 180 / M_PI);
|
||||||
|
|
||||||
if (shape_reverse && shape_mode == SHAPEMODE_CORNER) {
|
if (shape_reverse) {
|
||||||
deg = (deg + 180) % 360;
|
deg = (deg + 180) % 360;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue