Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Image.d @ 36:d46287db17ed
rakefile reorg, swt win phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 24 Mar 2009 08:48:41 +0100 |
parents | 950d84783eac |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
35:634e4380db78 | 36:d46287db17ed |
---|---|
1077 * @param object the object to compare with this object | 1077 * @param object the object to compare with this object |
1078 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 1078 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
1079 * | 1079 * |
1080 * @see #hashCode | 1080 * @see #hashCode |
1081 */ | 1081 */ |
1082 override public int opEquals (Object object) { | 1082 override public equals_t opEquals (Object object) { |
1083 if (object is this) return true; | 1083 if (object is this) return true; |
1084 if (!(cast(Image)object)) return false; | 1084 if (!(cast(Image)object)) return false; |
1085 Image image = cast(Image) object; | 1085 Image image = cast(Image) object; |
1086 return device is image.device && handle is image.handle; | 1086 return device is image.device && handle is image.handle; |
1087 } | 1087 } |
1707 * In this case, the color mask can be set to any value. For | 1707 * In this case, the color mask can be set to any value. For |
1708 * consistency, it is set to the same mask used by non WinCE | 1708 * consistency, it is set to the same mask used by non WinCE |
1709 * platforms in BI_RGB mode. | 1709 * platforms in BI_RGB mode. |
1710 */ | 1710 */ |
1711 if (i.palette.isDirect) { | 1711 if (i.palette.isDirect) { |
1712 final PaletteData palette = i.palette; | 1712 PaletteData palette = i.palette; |
1713 final int redMask = palette.redMask; | 1713 int redMask = palette.redMask; |
1714 final int greenMask = palette.greenMask; | 1714 int greenMask = palette.greenMask; |
1715 final int blueMask = palette.blueMask; | 1715 int blueMask = palette.blueMask; |
1716 int newDepth = i.depth; | 1716 int newDepth = i.depth; |
1717 int newOrder = ImageData.MSB_FIRST; | 1717 int newOrder = ImageData.MSB_FIRST; |
1718 PaletteData newPalette = null; | 1718 PaletteData newPalette = null; |
1719 | 1719 |
1720 switch (i.depth) { | 1720 switch (i.depth) { |