Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Fix BitBlt to take SafeDCHandle #594

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Gdi32/Gdi32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static extern int GetDeviceCaps(

[DllImport(nameof(Gdi32))]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hObjectSource, int nXSrc, int nYSrc, int dwRop);
public static extern bool BitBlt(User32.SafeDCHandle hObject, int nXDest, int nYDest, int nWidth, int nHeight, User32.SafeDCHandle hObjectSource, int nXSrc, int nYSrc, int dwRop);

[DllImport(nameof(Gdi32))]
public static extern IntPtr CreateCompatibleBitmap(User32.SafeDCHandle hDC, int nWidth, int nHeight);
Expand Down
1 change: 0 additions & 1 deletion src/Gdi32/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ PInvoke.Gdi32.StockObject.SYSTEM_FIXED_FONT = 16 -> PInvoke.Gdi32.StockObject
PInvoke.Gdi32.StockObject.SYSTEM_FONT = 13 -> PInvoke.Gdi32.StockObject
PInvoke.Gdi32.StockObject.WHITE_BRUSH = 0 -> PInvoke.Gdi32.StockObject
PInvoke.Gdi32.StockObject.WHITE_PEN = 6 -> PInvoke.Gdi32.StockObject
static extern PInvoke.Gdi32.BitBlt(System.IntPtr hObject, int nXDest, int nYDest, int nWidth, int nHeight, System.IntPtr hObjectSource, int nXSrc, int nYSrc, int dwRop) -> bool
static extern PInvoke.Gdi32.CreateCompatibleBitmap(PInvoke.User32.SafeDCHandle hDC, int nWidth, int nHeight) -> System.IntPtr
static extern PInvoke.Gdi32.CreateCompatibleDC(PInvoke.User32.SafeDCHandle hDC) -> PInvoke.User32.SafeDCHandle
static extern PInvoke.Gdi32.DeleteDC(PInvoke.User32.SafeDCHandle hDC) -> bool
Expand Down
1 change: 1 addition & 0 deletions src/Gdi32/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static extern PInvoke.Gdi32.BitBlt(PInvoke.User32.SafeDCHandle hObject, int nXDest, int nYDest, int nWidth, int nHeight, PInvoke.User32.SafeDCHandle hObjectSource, int nXSrc, int nYSrc, int dwRop) -> bool