Author: everaldo
Date: 2007-01-12 03:08:44 -0500 (Fri, 12 Jan 2007)
New Revision: 70901

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2007-01-11  Everaldo Canuto  <[EMAIL PROTECTED]>

        * ThemeWin32Classic.cs: Fix position of menuitem check mark.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-12 07:38:29 UTC (rev 70900)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-01-12 08:08:44 UTC (rev 70901)
@@ -1,3 +1,7 @@
+2007-01-11  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * ThemeWin32Classic.cs: Fix position of menuitem check mark.
+
 2007-01-11  Chris Toshok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-01-12 07:38:29 UTC (rev 70900)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-01-12 08:08:44 UTC (rev 70901)
@@ -5539,17 +5539,17 @@
                        }
 
                        case MenuGlyph.Checkmark: {
-                               int                     Scale;
+                               
                                Pen pen = ResPool.GetPen (color);
+                               lineWidth = Math.Max (2, rectangle.Width / 6);
+                               rect = new Rectangle(rectangle.X + lineWidth, 
rectangle.Y + lineWidth, rectangle.Width - lineWidth * 2, rectangle.Height- 
lineWidth * 2);
 
-                               lineWidth=Math.Max(2, rectangle.Width/6);
-                               Scale=Math.Max(1, rectangle.Width/12);
+                               int Scale = Math.Max (1, rectangle.Width / 12);
+                               int top = (rect.Y + lineWidth + ((rect.Height - 
((2 * Scale) + lineWidth)) / 2));
 
-                               rect=new Rectangle(rectangle.X+lineWidth, 
rectangle.Y+lineWidth, rectangle.Width-lineWidth*2, 
rectangle.Height-lineWidth*2);
-
                                for (int i=0; i<lineWidth; i++) {
-                                       graphics.DrawLine(pen, 
rect.Left+lineWidth/2, rect.Top+lineWidth+i, rect.Left+lineWidth/2+2*Scale, 
rect.Top+lineWidth+2*Scale+i);
-                                       graphics.DrawLine(pen, 
rect.Left+lineWidth/2+2*Scale, rect.Top+lineWidth+2*Scale+i, 
rect.Left+lineWidth/2+6*Scale, rect.Top+lineWidth-2*Scale+i);
+                                       graphics.DrawLine (pen, 
rect.Left+lineWidth/2, top+i, rect.Left+lineWidth/2+2*Scale, top+2*Scale+i);
+                                       graphics.DrawLine (pen, 
rect.Left+lineWidth/2+2*Scale, top+2*Scale+i, rect.Left+lineWidth/2+6*Scale, 
top-2*Scale+i);
                                }
                                return;
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to