Skip to content

Commit

Permalink
Merge pull request #138 from mrrhak/main
Browse files Browse the repository at this point in the history
Fixed cannot convert type Double to type CGFloat
  • Loading branch information
lijy91 authored Apr 29, 2022
2 parents e985a7d + d6cdd64 commit 3e1a2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macos/Classes/WindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public class WindowManager: NSObject, NSWindowDelegate {

// Reset the behaviour to default if aspect_ratio is set to 0 or less.
if (aspectRatio > 0.0) {
let aspectRatioSize: NSSize = NSMakeSize(aspectRatio, 1.0)
let aspectRatioSize: NSSize = NSMakeSize(CGFloat(aspectRatio), 1.0)
if (hasFrame) {
mainWindow.contentAspectRatio = aspectRatioSize
} else {
Expand Down

0 comments on commit 3e1a2dc

Please sign in to comment.