From 17701dc57d91893000ae8c78ee39dd2a2dd97454 Mon Sep 17 00:00:00 2001 From: "J.D. Purcell" Date: Sat, 2 Nov 2019 00:22:40 -0400 Subject: [PATCH] Fix wrong return type in P/Invokes. --- .../CustomControls/ControlRenderer/GDIRenderer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/GDIRenderer.cs b/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/GDIRenderer.cs index 12e76de025..a63258337d 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/GDIRenderer.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/GDIRenderer.cs @@ -278,16 +278,16 @@ namespace BizHawk.Client.EmuHawk.CustomControls private static extern IntPtr CreateSolidBrush(int color); [DllImport("gdi32.dll")] - private static extern IntPtr MoveToEx(IntPtr hdc, int x, int y, IntPtr point); + private static extern uint MoveToEx(IntPtr hdc, int x, int y, IntPtr point); [DllImport("gdi32.dll")] - private static extern IntPtr LineTo(IntPtr hdc, int nXEnd, int nYEnd); + private static extern uint LineTo(IntPtr hdc, int nXEnd, int nYEnd); [DllImport("gdi32.dll")] private static extern IntPtr GetStockObject(int fnObject); [DllImport("gdi32.dll")] - private static extern IntPtr SetDCPenColor(IntPtr hdc, int crColor); + private static extern uint SetDCPenColor(IntPtr hdc, int crColor); [DllImport("gdi32.dll")] private static extern IntPtr CreateCompatibleDC(IntPtr hdc);