Used dxerr instead of dxerr9 in directinput joystick driver. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Sun, 03 Aug 2008 10:25:25 +0000
branchgsoc2008_force_feedback
changeset 2579 bd2a6c70cb29
parent 2578 72c4ac55f73c
child 2580 64fa227c01ce
Used dxerr instead of dxerr9 in directinput joystick driver.
src/joystick/win32/SDL_dxjoystick.c
--- a/src/joystick/win32/SDL_dxjoystick.c	Sun Aug 03 10:20:31 2008 +0000
+++ b/src/joystick/win32/SDL_dxjoystick.c	Sun Aug 03 10:25:25 2008 +0000
@@ -48,9 +48,9 @@
     /* Used for the c_dfDIJoystick2 symbol (no imports are used) */
 #   pragma comment (lib, "dinput.lib")
 #endif
-#include <dxerr9.h>             /* From DirectX SDK 9c */
+#include <dxerr.h>
 #ifdef _MSC_VER
-#   pragma comment (lib, "dxerr9.lib")
+#   pragma comment (lib, "dxerr.lib")
 #endif
 
 /* an ISO hack for VisualC++ */
@@ -127,7 +127,7 @@
 SetDIerror(const char *function, HRESULT code)
 {
     SDL_SetError("%s() [%s]: %s", function,
-                 DXGetErrorString9(code), DXGetErrorDescription9(code));
+                 DXGetErrorString(code), DXGetErrorDescription(code));
 }