mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 22:34:27 -07:00
Fix boxes and circles drawing.
This commit is contained in:
parent
c1e9c72968
commit
5e0cb799bd
1 changed files with 12 additions and 9 deletions
|
@ -30,7 +30,6 @@ namespace Greenshot.Gfx.Legacy
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static partial class ScaleHelper
|
public static partial class ScaleHelper
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// calculates the Size an element must be resized to, in order to fit another element, keeping aspect ratio
|
/// calculates the Size an element must be resized to, in order to fit another element, keeping aspect ratio
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -377,6 +376,10 @@ namespace Greenshot.Gfx.Legacy
|
||||||
|
|
||||||
boundsAfterResize = boundsAfterResize.Resize((float)Math.Round(dist * Math.Cos(angle / 180 * Math.PI)), (float)Math.Round(dist * Math.Sin(angle / 180 * Math.PI)));
|
boundsAfterResize = boundsAfterResize.Resize((float)Math.Round(dist * Math.Cos(angle / 180 * Math.PI)), (float)Math.Round(dist * Math.Sin(angle / 180 * Math.PI)));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
boundsAfterResize = boundsAfterResize.Resize(cursorX - boundsBeforeResize.Left, cursorY - boundsBeforeResize.Top);
|
||||||
|
}
|
||||||
|
|
||||||
if (centeredScale)
|
if (centeredScale)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue