зеркало из https://github.com/dotnet/winforms.git
Fix HDC in BeginPaintScope (#3507)
Getting the DC again was a copy/paste mistake
This commit is contained in:
Родитель
838dd6a187
Коммит
13f53be160
|
@ -26,7 +26,6 @@ internal static partial class Interop
|
|||
_paintStruct = default;
|
||||
HDC = BeginPaint(hwnd, ref _paintStruct);
|
||||
HWND = hwnd;
|
||||
HDC = GetDC(hwnd);
|
||||
}
|
||||
|
||||
public static implicit operator IntPtr(BeginPaintScope paintScope) => paintScope.HDC;
|
||||
|
|
Загрузка…
Ссылка в новой задаче