From 9b6f16a23821fadd22da5eb81810410a301c81a3 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 14 Jan 2016 09:52:16 -0500 Subject: [PATCH] SDL_GetDisplayName --- src/SDL2.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index fd609a6..637e21f 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1240,6 +1240,10 @@ namespace SDL2 out SDL_DisplayMode mode ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + [return : MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(LPUtf8StrMarshaler), MarshalCookie = LPUtf8StrMarshaler.LeaveAllocated)] + public static extern string SDL_GetDisplayName(int index); + /// /// Use this function to get the desktop area represented by a display, with the primary display located at 0,0. ///