File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 66
77#pragma once
88
9+ #import " virtualization_helper.h"
910#import < Availability.h>
1011#import < Cocoa/Cocoa.h>
1112#import < Virtualization/Virtualization.h>
Original file line number Diff line number Diff line change @@ -453,7 +453,8 @@ - (void)setupGraphicWindow
453453// distortion within the window.
454454- (NSSize )getVirtualMachineSizeInPixels
455455{
456- __block NSSize sizeInPixels;
456+ __block NSSize sizeInPixels = NSZeroSize ;
457+ #ifdef INCLUDE_TARGET_OSX_14
457458 if (@available (macOS 14.0 , *)) {
458459 dispatch_sync (_queue, ^{
459460 if (_virtualMachine.graphicsDevices .count > 0 ) {
@@ -465,6 +466,7 @@ - (NSSize)getVirtualMachineSizeInPixels
465466 }
466467 });
467468 }
469+ #endif
468470 return sizeInPixels;
469471}
470472
You can’t perform that action at this time.
0 commit comments