[commit] r1761 - trunk/SDK/DecoratorLib

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Jan 4 14:33:50 CST 2012


Author: ksmyth
Date: Wed Jan  4 14:33:50 2012
New Revision: 1761

Log:
Disable gradient under wine

Modified:
   trunk/SDK/DecoratorLib/DecoratorUtil.cpp

Modified: trunk/SDK/DecoratorLib/DecoratorUtil.cpp
==============================================================================
--- trunk/SDK/DecoratorLib/DecoratorUtil.cpp	Wed Jan  4 14:33:38 2012	(r1760)
+++ trunk/SDK/DecoratorLib/DecoratorUtil.cpp	Wed Jan  4 14:33:50 2012	(r1761)
@@ -984,7 +984,11 @@
 												 GetGValue(endColor),
 												 GetBValue(endColor));
 
-	if (bRoundRect && iCornerRadius > 0) {
+	if (isRunningUnderWine()) {
+		// Wine doesn't work well with either of the two routines below
+		Gdiplus::SolidBrush brush(lighterColor);
+		gdip->FillRectangle(&brush, cRect.left, cRect.top, cRect.right - cRect.left, cRect.bottom - cRect.top);
+	} else if (bRoundRect && iCornerRadius > 0) {
 		long diameter = 2 * iCornerRadius;
 		Gdiplus::GraphicsPath buttonPath;
 		buttonPath.AddArc(cRect.left, cRect.top, diameter, diameter, 180.0, 90.0);


More information about the gme-commit mailing list