Skip to content

Commit

Permalink
fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Oct 9, 2023
1 parent fcd21eb commit b9e2df1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtualization_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ - (instancetype)initWithVirtualMachine:(VZVirtualMachine *)virtualMachine
view.capturesSystemKeys = YES;
view.virtualMachine = _virtualMachine;
#ifdef INCLUDE_TARGET_OSX_14
// Configure the app to automatically respond to changes in the display size.
view.automaticallyReconfiguresDisplay = YES;
if (@available(macOS 14.0, *)) {
// Configure the app to automatically respond to changes in the display size.
view.automaticallyReconfiguresDisplay = YES;
}
#endif
_virtualMachineView = view;

Expand Down

0 comments on commit b9e2df1

Please sign in to comment.