瀏覽代碼

Fixed building with older Windows SDK

Sam Lantinga 1 年之前
父節點
當前提交
c24b33d8d9
共有 1 個文件被更改,包括 4 次插入0 次删除
  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