Skip to content

Commit

Permalink
Fix HDC in BeginPaintScope
Browse files Browse the repository at this point in the history
Getting the DC again was a copy/paste mistake
  • Loading branch information
JeremyKuhne committed Jun 24, 2020
1 parent 838dd6a commit 319a153
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -26,7 +26,6 @@ public BeginPaintScope(IntPtr hwnd)
_paintStruct = default;
HDC = BeginPaint(hwnd, ref _paintStruct);
HWND = hwnd;
HDC = GetDC(hwnd);
}

public static implicit operator IntPtr(BeginPaintScope paintScope) => paintScope.HDC;
Expand Down

0 comments on commit 319a153

Please sign in to comment.