diff --git a/SKIV.vcxproj b/SKIV.vcxproj index e25e829..9055e1d 100644 --- a/SKIV.vcxproj +++ b/SKIV.vcxproj @@ -82,20 +82,20 @@ true $(VC_IncludePath);$(WindowsSDK_IncludePath);.\resources\;.\packages_misc\;.\packages_misc\gsl\ $(ProjectName)32 - C:\Users\amcol\Documents\My Mods\SpecialK\ + Builds\ Builds\$(Platform)-$(Configuration)\ false true $(VC_IncludePath);$(WindowsSDK_IncludePath);.\resources\;.\packages_misc\;.\packages_misc\gsl\ - C:\Users\amcol\Documents\My Mods\SpecialK\ + Builds\ Builds\$(Platform)-$(Configuration)\ false false - C:\Users\amcol\Documents\My Mods\SpecialK\ + Builds\ $(VC_IncludePath);$(WindowsSDK_IncludePath);.\resources\;.\packages_misc\;.\packages_misc\gsl\ $(ProjectName)32 false diff --git a/src/utility/utility.cpp b/src/utility/utility.cpp index 0a3ae2c..dfe5195 100644 --- a/src/utility/utility.cpp +++ b/src/utility/utility.cpp @@ -2699,7 +2699,7 @@ typedef enum EFFECTIVE_POWER_MODE { #define EffectivePowerModeNone -1 #endif -std::atomic enumEffectivePowerMode = EffectivePowerModeNone; +std::atomic enumEffectivePowerMode = EffectivePowerModeNone; typedef VOID WINAPI EFFECTIVE_POWER_MODE_CALLBACK ( _In_ EFFECTIVE_POWER_MODE Mode, @@ -2803,12 +2803,11 @@ void SKIF_Util_SetEffectivePowerModeNotifications (bool enable) // High Dynamic Range (HDR) +//#if (NTDDI_VERSION >= NTDDI_WIN10_NI) #include #include - -#if (NTDDI_VERSION >= NTDDI_WIN10_NI) #include -#endif +//#endif // This actually updates the underlying vector static void @@ -2926,6 +2925,7 @@ SKIF_UtilInt_UpdateMonitors (void) monitor.path_targetInfo.adapterId = path.targetInfo.adapterId; // Windows 10 1803+ (Build 17134) or newer +//#if (NTDDI_VERSION >= NTDDI_WIN10_NI) if (SKIF_Util_IsWindows10v1803OrGreater ( )) { using namespace winrt::Windows::Devices::Display::Core; @@ -2954,6 +2954,7 @@ SKIF_UtilInt_UpdateMonitors (void) } } } +//#endif // Windows 10 1709+ (Build 16299) fallback if (! success || (! SKIF_Util_IsWindows10v1803OrGreater ( ) && SKIF_Util_IsWindows10v1709OrGreater ( )))