Skip to content

Commit 2f6cc25

Browse files
author
Arthur
committed
win32 updates
1 parent 59c6429 commit 2f6cc25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/HtmlRenderer.WinForms/Utilities/Win32Utils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ public static Rectangle GetWindowRectangle(IntPtr handle)
141141
public static extern int SetBkMode(IntPtr hdc, int mode);
142142

143143
[DllImport("gdi32.dll")]
144-
public static extern int SelectObject(IntPtr hdc, IntPtr hgdiObj);
144+
public static extern IntPtr SelectObject(IntPtr hdc, IntPtr hgdiObj);
145145

146146
[DllImport("gdi32.dll")]
147-
public static extern int SetTextColor(IntPtr hdc, int color);
147+
public static extern uint SetTextColor(IntPtr hdc, int color);
148148

149149
[DllImport("gdi32.dll", CharSet = CharSet.Unicode)]
150150
public static extern bool GetTextMetrics(IntPtr hdc, out TextMetric lptm);
@@ -172,7 +172,7 @@ public static Rectangle GetWindowRectangle(IntPtr handle)
172172

173173
[DllImport("gdi32.dll")]
174174
[return: MarshalAs(UnmanagedType.Bool)]
175-
public static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop);
175+
public static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, uint dwRop);
176176

177177
[DllImport("gdi32.dll", EntryPoint = "GdiAlphaBlend")]
178178
public static extern bool AlphaBlend(IntPtr hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, IntPtr hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, BlendFunction blendFunction);

0 commit comments

Comments
 (0)