diff options
Diffstat (limited to 'dev/macos/Sources')
| -rw-r--r-- | dev/macos/Sources/AppDelegate.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/macos/Sources/AppDelegate.swift b/dev/macos/Sources/AppDelegate.swift index 4168999f..5ee775cf 100644 --- a/dev/macos/Sources/AppDelegate.swift +++ b/dev/macos/Sources/AppDelegate.swift @@ -132,7 +132,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { // to change the day macos_min_version reaches 14. NSApp.activate(ignoringOtherApps: true) - var runtime = pardes_callbacks_s( + var callbacks = pardes_callbacks_s( userdata: Unmanaged.passUnretained(self).toOpaque(), wakeup: { ud in // A pty reader thread. Every other function in pardes.h is @@ -168,7 +168,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, PardesViewDelegate { // greeting until it has seen a size, so a correction sent afterwards // arrives with the first prompt already wrapped to the wrong width. let grid = view.gridSize - let rc = pardes_init(&runtime, grid.cols, grid.rows) + let rc = pardes_init(&callbacks, grid.cols, grid.rows) if rc != 0 { NSLog("pardes: the core failed to boot at \(grid.cols)x\(grid.rows), pardes_init returned \(rc)") // Not NSApp.terminate — that runs applicationWillTerminate, which |
