mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
Fix diff for ScaleHelper
This commit is contained in:
parent
817a1d80c1
commit
5e7b5162d9
1 changed files with 8 additions and 7 deletions
|
@ -215,14 +215,15 @@ namespace Greenshot.Editor.Helpers
|
|||
/// <param name="cursorX">int</param>
|
||||
/// <param name="cursorY">int</param>
|
||||
/// <param name="angleRoundBehavior">IDoubleProcessor</param>
|
||||
/// <param name="options">ScaleOptionsProcessor</param>
|
||||
/// <param name="scaleOptions">ScaleOptions</param>
|
||||
/// <returns>NativeRectFloat</returns>
|
||||
public static NativeRectFloat Scale(NativeRect boundsBeforeResize, int cursorX, int cursorY, IDoubleProcessor angleRoundBehavior, ScaleOptions? options = null)
|
||||
public static NativeRectFloat Scale(NativeRect boundsBeforeResize, int cursorX, int cursorY, IDoubleProcessor angleRoundBehavior, ScaleOptions? scaleOptions = null)
|
||||
{
|
||||
options ??= GetScaleOptions();
|
||||
scaleOptions ??= GetScaleOptions();
|
||||
|
||||
NativeRectFloat result = boundsBeforeResize;
|
||||
bool rationalScale = (options & ScaleOptions.Rational) == ScaleOptions.Rational;
|
||||
bool centeredScale = (options & ScaleOptions.Centered) == ScaleOptions.Centered;
|
||||
bool rationalScale = (scaleOptions & ScaleOptions.Rational) == ScaleOptions.Rational;
|
||||
bool centeredScale = (scaleOptions & ScaleOptions.Centered) == ScaleOptions.Centered;
|
||||
|
||||
if (rationalScale)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue