Mercurial > projects > dwt2
diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/CLabel.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | ddbfe84d86df |
children | c01d033c633a |
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/CLabel.d Fri Mar 27 12:05:20 2009 +0100 +++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/CLabel.d Fri Mar 27 12:59:54 2009 +0100 @@ -448,12 +448,12 @@ } } else if (gradientColors !is null) { // draw a gradient behind the text - final Color oldBackground = gc.getBackground(); + Color oldBackground = gc.getBackground(); if (gradientColors.length is 1) { if (gradientColors[0] !is null) gc.setBackground(gradientColors[0]); gc.fillRectangle(0, 0, rect.width, rect.height); } else { - final Color oldForeground = gc.getForeground(); + Color oldForeground = gc.getForeground(); Color lastColor = gradientColors[0]; if (lastColor is null) lastColor = oldBackground; int pos = 0; @@ -463,11 +463,11 @@ if (lastColor is null) lastColor = oldBackground; gc.setBackground(lastColor); if (gradientVertical) { - final int gradientHeight = (gradientPercents[i] * rect.height / 100) - pos; + int gradientHeight = (gradientPercents[i] * rect.height / 100) - pos; gc.fillGradientRectangle(0, pos, rect.width, gradientHeight, true); pos += gradientHeight; } else { - final int gradientWidth = (gradientPercents[i] * rect.width / 100) - pos; + int gradientWidth = (gradientPercents[i] * rect.width / 100) - pos; gc.fillGradientRectangle(pos, 0, gradientWidth, rect.height, false); pos += gradientWidth; } @@ -679,7 +679,7 @@ } // Are these settings the same as before? - final Color background = getBackground(); + Color background = getBackground(); if (backgroundImage is null) { if ((gradientColors !is null) && (colors !is null) && (gradientColors.length is colors.length)) {