浏览代码

remove spoofed SDL_HelperWindow when SDL_VIDEO is off

Kyle Sylvestre 2 月之前
父节点
当前提交
0f061ff154
共有 2 个文件被更改,包括 0 次插入8 次删除
  1. 0 4
      src/haptic/windows/SDL_dinputhaptic.c
  2. 0 4
      src/joystick/windows/SDL_dinputjoystick.c

+ 0 - 4
src/haptic/windows/SDL_dinputhaptic.c

@@ -31,11 +31,7 @@
 /*
  * External stuff.
  */
-#ifdef SDL_VIDEO_DRIVER_WINDOWS
 extern HWND SDL_HelperWindow;
-#else
-static const HWND SDL_HelperWindow = NULL;
-#endif
 
 /*
  * Internal stuff.

+ 0 - 4
src/joystick/windows/SDL_dinputjoystick.c

@@ -40,11 +40,7 @@
 #define CONVERT_MAGNITUDE(x) (((x)*10000) / 0x7FFF)
 
 // external variables referenced.
-#ifdef SDL_VIDEO_DRIVER_WINDOWS
 extern HWND SDL_HelperWindow;
-#else
-static const HWND SDL_HelperWindow = NULL;
-#endif
 
 // local variables
 static bool coinitialized = false;