diff options
author | Neil <nyamatongwe@gmail.com> | 2022-03-01 12:03:38 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-03-01 12:03:38 +1100 |
commit | f433d8c6ed6875a983c9ff229ee7777728798a9b (patch) | |
tree | 65e01d80c50e3e6cc0ce9e691cbccb34fbcead95 /win32/PlatWin.cxx | |
parent | 86192b2636eeac718135ef71b1e53c5ed96f0839 (diff) | |
download | scintilla-mirror-f433d8c6ed6875a983c9ff229ee7777728798a9b.tar.gz |
Update Windows API version to Windows 10 (0x0A00) as released in 2015 and SDKs
should now be compatible.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 6a77aab3f..3d8595b1d 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -28,9 +28,9 @@ #define NOMINMAX #endif #undef _WIN32_WINNT -#define _WIN32_WINNT 0x0500 +#define _WIN32_WINNT 0x0A00 #undef WINVER -#define WINVER 0x0500 +#define WINVER 0x0A00 #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> #include <commctrl.h> @@ -58,14 +58,6 @@ #include "WinTypes.h" #include "PlatWin.h" -#ifndef SPI_GETFONTSMOOTHINGCONTRAST -#define SPI_GETFONTSMOOTHINGCONTRAST 0x200C -#endif - -#ifndef LOAD_LIBRARY_SEARCH_SYSTEM32 -#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800 -#endif - // __uuidof is a Microsoft extension but makes COM code neater, so disable warning #if defined(__clang__) #pragma clang diagnostic ignored "-Wlanguage-extension-token" @@ -159,10 +151,6 @@ bool LoadD2D() { #endif -#ifndef CLEARTYPE_QUALITY -#define CLEARTYPE_QUALITY 5 -#endif - void *PointerFromWindow(HWND hWnd) noexcept { return reinterpret_cast<void *>(::GetWindowLongPtr(hWnd, 0)); } |