diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-30 14:01:56 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-30 14:02:02 +0300 |
commit | 65451a18a3f6acfd6d641eb48c2253f1f998b9f8 (patch) | |
tree | 7b1b3c489370349f4f0973d6736b4e7a92992596 /src/win32.c | |
parent | a2dc01464497eda1dbc03f474e798c47292dc3ee (diff) |
Windows: Declare as HiDPI aware
Diffstat (limited to 'src/win32.c')
-rw-r--r-- | src/win32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win32.c b/src/win32.c index 7685fcac..36043b53 100644 --- a/src/win32.c +++ b/src/win32.c | |||
@@ -26,6 +26,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
26 | #define WIN32_LEAN_AND_MEAN | 26 | #define WIN32_LEAN_AND_MEAN |
27 | #include <Windows.h> | 27 | #include <Windows.h> |
28 | 28 | ||
29 | void setDPIAware_Win32(void) { | ||
30 | SetProcessDPIAware(); | ||
31 | } | ||
32 | |||
29 | void useExecutableIconResource_SDLWindow(SDL_Window *win) { | 33 | void useExecutableIconResource_SDLWindow(SDL_Window *win) { |
30 | HINSTANCE handle = GetModuleHandle(NULL); | 34 | HINSTANCE handle = GetModuleHandle(NULL); |
31 | HICON icon = LoadIcon(handle, "IDI_ICON1"); | 35 | HICON icon = LoadIcon(handle, "IDI_ICON1"); |