Watch
2
0
Fork
You've already forked raylib-cs
0

Update GetMonitorName and GetClipboardText to return UTF8

This commit is contained in:
Rgebee 2021-01-15 10:08:06 +00:00
commit 7351c663fa

View file

@ -1009,7 +1009,7 @@ namespace Raylib_cs
private static extern IntPtr INTERNAL_GetMonitorName(int monitor); private static extern IntPtr INTERNAL_GetMonitorName(int monitor);
public static string GetMonitorName(int monitor) public static string GetMonitorName(int monitor)
{ {
return Marshal.PtrToStringAnsi(INTERNAL_GetMonitorName(monitor)); return Marshal.PtrToStringUTF8(INTERNAL_GetMonitorName(monitor));
} }
// Get clipboard text content // Get clipboard text content
@ -1017,7 +1017,7 @@ namespace Raylib_cs
private static extern IntPtr INTERNAL_GetClipboardText(); private static extern IntPtr INTERNAL_GetClipboardText();
public static string GetClipboardText() public static string GetClipboardText()
{ {
return Marshal.PtrToStringAnsi(INTERNAL_GetClipboardText()); return Marshal.PtrToStringUTF8(INTERNAL_GetClipboardText());
} }
// Set clipboard text content // Set clipboard text content