Browse Source

Fixed building with older Windows SDK

Sam Lantinga 1 year ago
parent
commit
c24b33d8d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/video/windows/SDL_windowsvideo.h

+ 4 - 0
src/video/windows/SDL_windowsvideo.h

@@ -52,6 +52,10 @@
 
 #include "SDL_windowswindow.h"
 
+#ifndef USER_DEFAULT_SCREEN_DPI
+#define USER_DEFAULT_SCREEN_DPI 96
+#endif
+
 #if WINVER < 0x0601
 /* Touch input definitions */
 #define TWF_FINETOUCH 1