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

This commit is contained in:
Ozkan Sezer
2022-06-18 21:51:32 +03:00
committed by Sam Lantinga
parent 5f6d0abebe
commit a8d41b3b45
7 changed files with 27 additions and 6 deletions

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_