Skip to content

Commit

Permalink
fixed issue #175
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Nov 21, 2024
1 parent 9c5ca74 commit eec4a92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virtualization_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ - (void)setupGraphicWindow
- (NSSize)getVirtualMachineSizeInPixels
{
__block NSSize sizeInPixels;
#ifdef INCLUDE_TARGET_OSX_14
if (@available(macOS 14.0, *)) {
dispatch_sync(_queue, ^{
if (_virtualMachine.graphicsDevices.count > 0) {
Expand All @@ -465,6 +466,7 @@ - (NSSize)getVirtualMachineSizeInPixels
}
});
}
#endif
return sizeInPixels;
}

Expand Down

0 comments on commit eec4a92

Please sign in to comment.