Author: rolf
Date: 2006-10-17 11:38:29 -0400 (Tue, 17 Oct 2006)
New Revision: 66750

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2006-10-17  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
        * ThemeWin32Classic.cs: changed drawing of selected days
        to make them look better.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-17 15:19:11 UTC (rev 66749)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-17 15:38:29 UTC (rev 66750)
@@ -1,3 +1,7 @@
+2006-10-17  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+       * ThemeWin32Classic.cs: changed drawing of selected days
+       to make them look better.
+
 2006-10-16  Chris Toshok  <[EMAIL PROTECTED]>
 
        * Hwnd.cs: replace the user_data/client_dc/non_client_dc with

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2006-10-17 15:19:11 UTC (rev 66749)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2006-10-17 15:38:29 UTC (rev 66750)
@@ -2731,18 +2731,18 @@
                                date_color = mc.ForeColor;
                        }
 
-
+                       const int inflate = -1;
                        if (date == mc.SelectionStart && date == 
mc.SelectionEnd) {
                                // see if the date is in the start of selection
                                date_color = mc.BackColor;
                                // draw the left hand of the back ground
-                               Rectangle selection_rect = 
Rectangle.Inflate(rectangle, -3, -3);                                
-                               dc.FillPie (ResPool.GetSolidBrush 
(mc.TitleBackColor), selection_rect, 0, 359);
+                               Rectangle selection_rect = Rectangle.Inflate 
(rectangle, inflate, inflate);                             
+                               dc.FillPie (ResPool.GetSolidBrush 
(mc.TitleBackColor), selection_rect, 0, 360);
                        } else if (date == mc.SelectionStart) {
                                // see if the date is in the start of selection
                                date_color = mc.BackColor;
                                // draw the left hand of the back ground
-                               Rectangle selection_rect = 
Rectangle.Inflate(rectangle, -3, -3);                                
+                               Rectangle selection_rect = Rectangle.Inflate 
(rectangle, inflate, inflate);                             
                                dc.FillPie (ResPool.GetSolidBrush 
(mc.TitleBackColor), selection_rect, 90, 180);
                                // fill the other side as a straight rect
                                if (date < mc.SelectionEnd) 
@@ -2756,7 +2756,7 @@
                                // see if it is the end of selection
                                date_color = mc.BackColor;
                                // draw the left hand of the back ground
-                               Rectangle selection_rect = 
Rectangle.Inflate(rectangle, -3, -3);
+                               Rectangle selection_rect = Rectangle.Inflate 
(rectangle, inflate, inflate);
                                dc.FillPie (ResPool.GetSolidBrush 
(mc.TitleBackColor), selection_rect, 270, 180);
                                // fill the other side as a straight rect
                                if (date > mc.SelectionStart) {
@@ -2768,7 +2768,7 @@
                                // now see if it's in the middle
                                date_color = mc.BackColor;
                                // draw the left hand of the back ground
-                               Rectangle selection_rect = 
Rectangle.Inflate(rectangle, 0, -3);
+                               Rectangle selection_rect = Rectangle.Inflate 
(rectangle, 0, inflate);
                                dc.FillRectangle (ResPool.GetSolidBrush 
(mc.TitleBackColor), selection_rect);
                        }
 

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

Reply via email to