summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2009-04-24 13:24:25 +0000
committerSilenio Quarti <silenio>2009-04-24 13:24:25 +0000
commit93fa386b571c6e17acc445bb35eb7c1c0ea981f1 (patch)
tree9719c51f2a0ed976b5a0f35478a5c12972455c11 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
parent7725eb2962b0d3a5fc612d5b65dd477808281b50 (diff)
downloadeclipse.platform.swt-93fa386b571c6e17acc445bb35eb7c1c0ea981f1.tar.gz
eclipse.platform.swt-93fa386b571c6e17acc445bb35eb7c1c0ea981f1.tar.xz
eclipse.platform.swt-93fa386b571c6e17acc445bb35eb7c1c0ea981f1.zip
273313 - [carbon] Control#getBackground() and getForeground() returns new Color
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
index 76a8257c76..929be27a65 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
@@ -336,8 +336,7 @@ void updateBackground () {
if (backgroundImage != null) {
nsColor = NSColor.colorWithPatternImage(backgroundImage.handle);
} else if (background != null) {
- float /*double*/ [] color = background.handle;
- nsColor = NSColor.colorWithDeviceRed(color[0], color[1], color[2], 1);
+ nsColor = NSColor.colorWithDeviceRed(background[0], background[1], background[2], background[3]);
} else {
if ((style & SWT.CALENDAR) != 0) {
nsColor = NSColor.controlBackgroundColor ();