Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2011-11-07 20:21:38 +0000
committerCarolyn MacLeod2011-11-07 20:21:38 +0000
commitfd4fe435242d2802aee79425aba1131abed47e18 (patch)
tree7c4a94b4244a5de7fcaf28e9ef769d0cd8a58614 /examples
parent84b7f4eb839c40c67c06cf1cb3c34b24bf589c5a (diff)
downloadeclipse.platform.swt-fd4fe435242d2802aee79425aba1131abed47e18.tar.gz
eclipse.platform.swt-fd4fe435242d2802aee79425aba1131abed47e18.tar.xz
eclipse.platform.swt-fd4fe435242d2802aee79425aba1131abed47e18.zip
Show Display depth in ImageAnalyzer
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/examples_images.properties2
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.examples/src/examples_images.properties b/examples/org.eclipse.swt.examples/src/examples_images.properties
index 268989cab1..11f9e7f593 100644
--- a/examples/org.eclipse.swt.examples/src/examples_images.properties
+++ b/examples/org.eclipse.swt.examples/src/examples_images.properties
@@ -34,7 +34,7 @@ Type_index = Type: {0} [{1,number,integer} of {2,number,integer}]
Size_initial = Size:
Size_value = Size: {0,number,integer} x {1,number,integer}
Depth_initial = Depth:
-Depth_value = Depth: {0}
+Depth_value = Depth: {0} (Display: {1})
Transparent_pixel_initial = Transparent pixel:
Transparent_pixel_value = Transparent pixel: {0}
Time_to_load_initial = Time to load:
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
index 88935d08c7..b2a78802d8 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
@@ -1725,7 +1725,8 @@ public class ImageAnalyzer {
new Integer(imageData.height)});
sizeLabel.setText(string);
- string = createMsg(bundle.getString("Depth_value"), new Integer(imageData.depth));
+ string = createMsg(bundle.getString("Depth_value"),
+ new Object[] {new Integer(imageData.depth), new Integer(display.getDepth())});
depthLabel.setText(string);
string = createMsg(bundle.getString("Transparent_pixel_value"), pixelInfo(imageData.transparentPixel));

Back to the top