summaryrefslogtreecommitdiff
path: root/src/win32.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-30 14:01:56 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-30 14:02:02 +0300
commit65451a18a3f6acfd6d641eb48c2253f1f998b9f8 (patch)
tree7b1b3c489370349f4f0973d6736b4e7a92992596 /src/win32.c
parenta2dc01464497eda1dbc03f474e798c47292dc3ee (diff)
Windows: Declare as HiDPI aware
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c4
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
29void setDPIAware_Win32(void) {
30 SetProcessDPIAware();
31}
32
29void useExecutableIconResource_SDLWindow(SDL_Window *win) { 33void 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");