Author: toshok
Date: 2006-11-17 11:16:19 -0500 (Fri, 17 Nov 2006)
New Revision: 68063
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
Log:
2006-11-17 Chris Toshok <[EMAIL PROTECTED]>
* X11Hwnd.cs: port the XplatUIX11.ScrollWindow fix from 68061.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
2006-11-17 16:14:19 UTC (rev 68062)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
2006-11-17 16:16:19 UTC (rev 68063)
@@ -1,3 +1,7 @@
+2006-11-17 Chris Toshok <[EMAIL PROTECTED]>
+
+ * X11Hwnd.cs: port the XplatUIX11.ScrollWindow fix from 68061.
+
2006-11-14 Chris Toshok <[EMAIL PROTECTED]>
* X11Hwnd.cs, X11RootHwnd.cs, X11Atoms.cs, X11Display.cs,
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
2006-11-17 16:14:19 UTC (rev 68062)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
2006-11-17 16:16:19 UTC (rev 68063)
@@ -1010,10 +1010,9 @@
{
IntPtr gc;
XGCValues gc_values;
- Rectangle r;
- r = Invalid;
- if (r != Rectangle.Empty) {
+ Rectangle r = Rectangle.Intersect (Invalid, area);
+ if (!r.IsEmpty) {
/* We have an invalid area in the window we're
scrolling.
Adjust our stored invalid rectangle to to
match the scrolled amount */
@@ -1030,7 +1029,8 @@
r.Y =0;
}
- ClearInvalidArea();
+ if (area.Contains (Invalid))
+ ClearInvalidArea();
AddInvalidArea(r);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches