Try to fix use of C long in TTF_FontFaces

This commit is contained in:
Ethan Lee 2021-04-19 11:54:43 -04:00 committed by GitHub
parent 800ae50c84
commit e8bf894c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,9 +208,11 @@ namespace SDL2
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void TTF_SetFontKerning(IntPtr font, int allowed); public static extern void TTF_SetFontKerning(IntPtr font, int allowed);
/* font refers to a TTF_Font* */ /* font refers to a TTF_Font*.
* IntPtr is actually a C long! This ignores Win64!
*/
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern long TTF_FontFaces(IntPtr font); public static extern IntPtr TTF_FontFaces(IntPtr font);
/* font refers to a TTF_Font* */ /* font refers to a TTF_Font* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]