check for shellscalingapi.h presence instead of WINVER >= 0x0603

This commit is contained in:
Ozkan Sezer authored and Sam Lantinga committed 2022-06-18 13:00:44 -07:00
1 parent 5f6d0abebe
commit a8d41b3b45
7 files changed
+27 -6

No files matched your search

+2 -2
View File
@@ -274,7 +274,7 @@ typedef struct DISPLAYCONFIG_TARGET_DEVICE_NAME
#endif /* WINVER < 0x0601 */
#if WINVER < 0x0603
#ifndef HAVE_SHELLSCALINGAPI_H
typedef enum MONITOR_DPI_TYPE {
MDT_EFFECTIVE_DPI = 0,
@@ -291,7 +291,7 @@ typedef enum PROCESS_DPI_AWARENESS {
#else
#include <shellscalingapi.h>
#endif /* WINVER < 0x0603 */
#endif
#ifndef _DPI_AWARENESS_CONTEXTS_