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 6
6
7
7
#pragma once
8
8
9
+ #import " virtualization_helper.h"
9
10
#import < Availability.h>
10
11
#import < Cocoa/Cocoa.h>
11
12
#import < Virtualization/Virtualization.h>
Original file line number Diff line number Diff line change @@ -453,7 +453,8 @@ - (void)setupGraphicWindow
453
453
// distortion within the window.
454
454
- (NSSize )getVirtualMachineSizeInPixels
455
455
{
456
- __block NSSize sizeInPixels;
456
+ __block NSSize sizeInPixels = NSZeroSize ;
457
+ #ifdef INCLUDE_TARGET_OSX_14
457
458
if (@available (macOS 14.0 , *)) {
458
459
dispatch_sync (_queue, ^{
459
460
if (_virtualMachine.graphicsDevices .count > 0 ) {
@@ -465,6 +466,7 @@ - (NSSize)getVirtualMachineSizeInPixels
465
466
}
466
467
});
467
468
}
469
+ #endif
468
470
return sizeInPixels;
469
471
}
470
472
You can’t perform that action at this time.
0 commit comments