Skip to content

Commit 093aecd

Browse files
committed
Stop DirectN from not exposing the Win32Exception
1 parent 0a2567c commit 093aecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/DXControl/DXCanvas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ protected override void OnPaint(PaintEventArgs e)
518518

519519
try
520520
{
521-
_device.EndDraw();
521+
_device?.Object?.EndDraw(IntPtr.Zero, IntPtr.Zero);
522522
}
523523
catch (Win32Exception ex)
524524
{

0 commit comments

Comments
 (0)