Author: jackson
Date: 2005-04-27 13:45:29 -0400 (Wed, 27 Apr 2005)
New Revision: 43670
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
Log:
* ComboBox.cs: Just fill the clipping rect not the entire client
rect when drawing the background. This prevents pieces of the
image buffer from getting overwritten and is theoretically faster.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-27 17:42:21 UTC (rev 43669)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-27 17:45:29 UTC (rev 43670)
@@ -4,6 +4,9 @@
not just a blit.
* ThemeWin32Classic.cs: Don't fill the background for picture
boxes. This could overright user drawing.
+ * ComboBox.cs: Just fill the clipping rect not the entire client
+ rect when drawing the background. This prevents pieces of the
+ image buffer from getting overwritten and is theoretically faster.
2005-04-26 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2005-04-27 17:42:21 UTC (rev 43669)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
2005-04-27 17:45:29 UTC (rev 43670)
@@ -1508,7 +1508,7 @@
private void Draw (Rectangle clip, Graphics dc)
{
dc.FillRectangle
(ThemeEngine.Current.ResPool.GetSolidBrush
- (owner.BackColor), ClientRectangle);
+ (owner.BackColor), clip);
if (owner.Items.Count > 0) {
Rectangle item_rect;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches