mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-16 19:02:05 +00:00
apprt/embedded: fix initialization on macOS
This commit is contained in:
@@ -466,7 +466,9 @@ pub fn finalizeSurfaceInit(self: *const Metal, surface: *apprt.Surface) !void {
|
||||
},
|
||||
|
||||
apprt.embedded => .{
|
||||
.view = surface.nsview,
|
||||
.view = switch (surface.platform) {
|
||||
.macos => |v| v.nsview,
|
||||
},
|
||||
.scaleFactor = @floatCast(surface.content_scale.x),
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user