Author: dhudson
Date: 2007-09-25 17:42:29 -0400 (Tue, 25 Sep 2007)
New Revision: 86359
Modified:
trunk/tao/src/Tao.Sdl/Sdl.cs
Log:
joystick fix
Modified: trunk/tao/src/Tao.Sdl/Sdl.cs
===================================================================
--- trunk/tao/src/Tao.Sdl/Sdl.cs 2007-09-25 21:40:18 UTC (rev 86358)
+++ trunk/tao/src/Tao.Sdl/Sdl.cs 2007-09-25 21:42:29 UTC (rev 86359)
@@ -7333,7 +7333,7 @@
/// <seealso cref="SDL_JoystickOpen"/>
public static string SDL_JoystickName(int device_index)
{
- return Marshal.PtrToStringAnsi(__SDL_JoystickName(device_index));
+ return Marshal.PtrToStringAuto(__SDL_JoystickName(device_index));
}
[DllImport(SDL_NATIVE_LIBRARY, CallingConvention = CALLING_CONVENTION,
EntryPoint = "SDL_JoystickName"),
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches