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

Commit

Permalink
Merge pull request #594 from dotnet/BitBltFix
Browse files Browse the repository at this point in the history
Fix BitBlt to take `SafeDCHandle`
  • Loading branch information
AArnott authored Jan 25, 2022
2 parents 67c2d73 + 7a51f66 commit 2634eea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
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

0 comments on commit 2634eea

Please sign in to comment.