2007-04-27 Everaldo Canuto <everaldo@simios.org>
authorEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Fri, 27 Apr 2007 16:52:08 +0000 (16:52 -0000)
committerEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Fri, 27 Apr 2007 16:52:08 +0000 (16:52 -0000)
* MainMenu.cs: In draw method without parameters call draw method with
PaintEvent, another one (just rect) adjust rectangle and we dont need it
as Rect property is already adjusted. Fixes #80694.

svn path=/trunk/mcs/; revision=76393

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MainMenu.cs

index 5b254f721e4c495703393b7094e6196c79c0be1c..27152097284f49c1df1d83b98d8fc6cb80b3bec6 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-27  Everaldo Canuto  <everaldo@simios.org>
+
+       * MainMenu.cs: In draw method without parameters call draw method with 
+       PaintEvent, another one (just rect) adjust rectangle and we dont need it
+       as Rect property is already adjusted. Fixes #80694.
+
 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
 
        * Application.cs: Need to handle keyboard menu deselection here.
index 5e9000a2416d5e8855c5911b4a030914c86a1ee2..9d07fc6ae16f950b950fc0699e6d8598d9b675c2 100644 (file)
@@ -101,7 +101,8 @@ namespace System.Windows.Forms
 
                internal void Draw () 
                {
-                       Draw (Rect);
+                       PaintEventArgs pe = XplatUI.PaintEventStart (Wnd.window.Handle, false);
+                       Draw (pe, Rect);
                }
 
                internal void Draw (Rectangle rect)