Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix CharSet to Unicode for Gdip.DrawString (#42015)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern authored and danmoseley committed Oct 23, 2019
1 parent a6b2adb commit c33df88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private static void PlatformInitialize()
[DllImport(LibraryName, ExactSpelling = true)]
internal static extern int GdipFillRectanglesI(IntPtr graphics, IntPtr brush, Rectangle[] rects, int count);

[DllImport(LibraryName, ExactSpelling = true)]
[DllImport(LibraryName, ExactSpelling = true, CharSet = CharSet.Unicode)]
internal static extern int GdipDrawString(IntPtr graphics, string text, int len, IntPtr font, ref RectangleF rc, IntPtr format, IntPtr brush);

[DllImport(LibraryName, ExactSpelling = true)]
Expand Down

0 comments on commit c33df88

Please sign in to comment.