Author: jpobst
Date: 2007-01-17 18:13:01 -0500 (Wed, 17 Jan 2007)
New Revision: 71235
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
Log:
2007-01-17 Jonathan Pobst <[EMAIL PROTECTED]>
* XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-17 22:19:37 UTC (rev 71234)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-17 23:13:01 UTC (rev 71235)
@@ -1,5 +1,9 @@
-2007-01-16 Jonathan Pobst <[EMAIL PROTECTED]>
+2007-01-17 Jonathan Pobst <[EMAIL PROTECTED]>
+ * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
+
+2007-01-17 Jonathan Pobst <[EMAIL PROTECTED]>
+
* XplatUIWin32.cs: Implement proper double buffering for Windows.
[Fixes bug #80447, and probably speeds up things as well]
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
2007-01-17 22:19:37 UTC (rev 71234)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
2007-01-17 23:13:01 UTC (rev 71235)
@@ -2654,7 +2654,7 @@
offscreen_drawable = new WinBuffer (srcHdc, srcBmp);
- destG.ReleaseHdc ();
+ destG.ReleaseHdc (destHdc);
}
internal override Graphics GetOffscreenGraphics (object
offscreen_drawable)
@@ -2666,8 +2666,9 @@
{
WinBuffer wb = (WinBuffer)offscreen_drawable;
- Win32BitBlt (dest_dc.GetHdc (), r.Left, r.Top, r.Width,
r.Height, wb.hdc, r.Left, r.Top, TernaryRasterOperations.SRCCOPY);
- dest_dc.ReleaseHdc ();
+ IntPtr destHdc = dest_dc.GetHdc ();
+ Win32BitBlt (destHdc, r.Left, r.Top, r.Width, r.Height,
wb.hdc, r.Left, r.Top, TernaryRasterOperations.SRCCOPY);
+ dest_dc.ReleaseHdc (destHdc);
}
internal override void DestroyOffscreenDrawable (object
offscreen_drawable)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches