Skip to content

Commit 3e1a2dc

Browse files
authored
Merge pull request #138 from mrrhak/main
Fixed cannot convert type Double to type CGFloat
2 parents e985a7d + d6cdd64 commit 3e1a2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macos/Classes/WindowManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public class WindowManager: NSObject, NSWindowDelegate {
172172

173173
// Reset the behaviour to default if aspect_ratio is set to 0 or less.
174174
if (aspectRatio > 0.0) {
175-
let aspectRatioSize: NSSize = NSMakeSize(aspectRatio, 1.0)
175+
let aspectRatioSize: NSSize = NSMakeSize(CGFloat(aspectRatio), 1.0)
176176
if (hasFrame) {
177177
mainWindow.contentAspectRatio = aspectRatioSize
178178
} else {

0 commit comments

Comments
 (0)