Skip to content
Open
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
5 changes: 3 additions & 2 deletions src/D2DLibExport/D2DGraphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class D2DGraphics
{
internal HANDLE Handle { get; }

public D2DDevice? Device { get; }
public D2DDevice Device { get; }

public D2DGraphics(D2DDevice context)
: this(context.Handle)
Expand All @@ -42,7 +42,8 @@ public D2DGraphics(D2DDevice context)
public D2DGraphics(HANDLE handle)
{
this.Handle = handle;
}
this.Device = new D2DDevice(handle);
}

public void BeginRender()
{
Expand Down