1 file changed
+4
-4
@@ -171,10 +171,10 @@ namespace VocaluxeLib
|
|||||||
public static SRectF Scale(this SRectF rect, float scale)
|
public static SRectF Scale(this SRectF rect, float scale)
|
||||||
{
|
{
|
||||||
return new SRectF(
|
return new SRectF(
|
||||||
rect.X - rect.W * (scale - 1f),
|
rect.X - rect.W * (scale - 1f) * 0.5f,
|
||||||
rect.Y - rect.H * (scale - 1f),
|
rect.Y - rect.H * (scale - 1f) * 0.5f,
|
||||||
rect.W + 2 * rect.W * (scale - 1f),
|
rect.W * scale,
|
||||||
rect.H + 2 * rect.H * (scale - 1f),
|
rect.H * scale,
|
||||||
rect.Z);
|
rect.Z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user