Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/GdiTest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GdiTest/BitBltDrawingArea.cs')
-rw-r--r--GdiTest/BitBltDrawingArea.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/GdiTest/BitBltDrawingArea.cs b/GdiTest/BitBltDrawingArea.cs
index 2b13aa0..1a42802 100644
--- a/GdiTest/BitBltDrawingArea.cs
+++ b/GdiTest/BitBltDrawingArea.cs
@@ -33,14 +33,21 @@ namespace GdiTest
cg.LineTo (110, 110);
cg.Stroke ();
- Win32Gdi win32Gdi = Win32Gdi.getInstance();
+ Win32GDI GDI_Win32 = Win32GDI.getInstance();
- if (win32Gdi.isAvailable())
+ if (GDI_Win32.isAvailable())
{
System.Drawing.Graphics wg = Gtk.DotNet.Graphics.FromDrawable(this.GdkWindow, true);
IntPtr dc = wg.GetHdc();
- win32Gdi.BitBlt(dc, 70, 0, 60, 60, dc, 0, 0, Gdi.SRCCOPY);
+ GDI_Win32.BitBlt(dc, 70, 0, 60, 60, dc, 0, 0, GDI.SRCCOPY);
+ }
+
+ FreeRDPGDI GDI_FreeRDP = FreeRDPGDI.getInstance();
+
+ if (GDI_FreeRDP.isAvailable())
+ {
+ GDI_FreeRDP.GetDC((IntPtr) null);
}
}
return true;