Bug 20556 ImageAnalyzer example - bug in the set background
build 20020617 1 - Run the ImageAnalyzer found on org.eclipse.swt.examples. 2 - In the Background Combo choice a different Color 3 - the canvas on center will not changed its background color, only the scrollbar will. The bug is on examples, though this is working properly on Windows. A possible fix is remove imageCanvas.fillRectangle(...) call from the changeBackground() method. Maybe we should fix this to F4..
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
if (where == 0) x = xByte * 4;
			if (where == 1) x = xByte * 4 + 1;
			if (where == 2) x = xByte * 4 + 3;
		}
		if (depth == 4) { 
			if (where == 0) x = xByte * 2;
			if (where == 1) x = xByte * 2;
			if (where == 2) x = xByte * 2 + 1;
		}
		if (depth == 8) { 
			x = xByte;
		}
		if (depth == 16) { 
			x = xByte / 2;
		}
		if (depth == 24) { 
			x = xByte / 3;
		}
		if (depth == 32) { 
			x = xByte / 4;
		}
		if (x != -1) {
			showColorForPixel(x, y);
		} else {
			statusLabel.setText("");
		}
	}
	
	/*
	 * Set the status label to show color information