diff --git a/virtualization_view.h b/virtualization_view.h index 09766a7..3b81b28 100644 --- a/virtualization_view.h +++ b/virtualization_view.h @@ -6,6 +6,7 @@ #pragma once +#import "virtualization_helper.h" #import #import #import diff --git a/virtualization_view.m b/virtualization_view.m index 1e6e3f2..def2842 100644 --- a/virtualization_view.m +++ b/virtualization_view.m @@ -453,7 +453,8 @@ - (void)setupGraphicWindow // distortion within the window. - (NSSize)getVirtualMachineSizeInPixels { - __block NSSize sizeInPixels; + __block NSSize sizeInPixels = NSZeroSize; +#ifdef INCLUDE_TARGET_OSX_14 if (@available(macOS 14.0, *)) { dispatch_sync(_queue, ^{ if (_virtualMachine.graphicsDevices.count > 0) { @@ -465,6 +466,7 @@ - (NSSize)getVirtualMachineSizeInPixels } }); } +#endif return sizeInPixels; }