mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Merge pull request #974 from ychin/fix-os-appearance-macos-14
Fix v:os_appearance to work when building against older SDKs
This commit is contained in:
@@ -335,7 +335,7 @@ shouldUseBufferedDrawing()
|
||||
int
|
||||
getCurrentAppearance(NSAppearance *appearance){
|
||||
int flag = 0; // for macOS 10.13 or eariler always return 0;
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
|
||||
if (@available(macOS 10.14, *)) {
|
||||
NSAppearanceName appearanceName = [appearance bestMatchFromAppearancesWithNames:
|
||||
@[NSAppearanceNameAqua
|
||||
|
||||
Reference in New Issue
Block a user