summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java
diff options
context:
space:
mode:
authorAndre Weinand <aweinand>2002-05-23 13:23:11 +0000
committerAndre Weinand <aweinand>2002-05-23 13:23:11 +0000
commitb84d7d116f98b7b51b98d6c79a1f0ff2a142d0ea (patch)
treea049498e9c1e9b9308fe7ae19477ab5d82c1a975 /bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java
parent454d6a5c1a3f7cb78ffb95180849ad2b69623071 (diff)
downloadeclipse.platform.swt-b84d7d116f98b7b51b98d6c79a1f0ff2a142d0ea.tar.gz
eclipse.platform.swt-b84d7d116f98b7b51b98d6c79a1f0ff2a142d0ea.tar.xz
eclipse.platform.swt-b84d7d116f98b7b51b98d6c79a1f0ff2a142d0ea.zip
Changed generic icon from completely black to grey rectangle
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java22
1 files changed, 18 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java
index 6d18f69d04..5687a71c0f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java
@@ -279,11 +279,25 @@ public ImageData getImageData () {
Image image = Image.win32_new (null, SWT.ICON, phiconSmall[0]);
*/
- Image image = new Image(null, 16, 16);
- ImageData imageData = image.getImageData ();
- image.dispose ();
+ ImageData id= new ImageData(16, 16, 2,
+ new PaletteData(
+ new RGB[] {
+ new RGB(0, 0, 0),
+ new RGB(128, 128, 128)
+ }
+ )
+ );
+ id.transparentPixel= 0; // use black for transparency
+
+ for (int y= 2; y < 14; y++)
+ for (int x= 2; x < 14; x++)
+ if (x == 2 || x == 13 || y == 2 || y == 13)
+ id.setPixel(x, y, 1);
+
+ //Image im= new Image(null, id);
+ //id= im.getImageData();
- return imageData;
+ return id;
}
/**