diff options
author | Silenio Quarti <silenio> | 2009-04-24 13:24:25 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2009-04-24 13:24:25 +0000 |
commit | 93fa386b571c6e17acc445bb35eb7c1c0ea981f1 (patch) | |
tree | 9719c51f2a0ed976b5a0f35478a5c12972455c11 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java | |
parent | 7725eb2962b0d3a5fc612d5b65dd477808281b50 (diff) | |
download | eclipse.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-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java | 3 |
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 (); |