From e0d03baf1c4d3ea990e40e3bd3f3cc13b436a32d Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Thu, 24 Jul 2025 19:37:36 +0800 Subject: [PATCH] osw reshape fix --- VoidLink/Input/OnScreenWidgetView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index 2cea3abc..f2e0c994 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -361,7 +361,7 @@ import UIKit if self.shape == "round"{ // we'll make custom osc buttons round & smaller NSLayoutConstraint.activate([ self.widthAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.widthFactor / 2) * 2)), - self.heightAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.heightFactor / 2) * 2)),]) + self.heightAnchor.constraint(equalToConstant: CGFloat(Int(60 * self.widthFactor / 2) * 2)),]) } if self.shape == "square" { NSLayoutConstraint.activate([