core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/SharedBackgroundComposite.java
changeset 1618 712d047abd8b
parent 1609 085da1889c59
child 2031 736964f28d2a
equal deleted inserted replaced
1617:94b6d1326534 1618:712d047abd8b
    55 		Rectangle imageBounds = image.getBounds();
    55 		Rectangle imageBounds = image.getBounds();
    56 		width = Math.min(width, imageBounds.width - x);
    56 		width = Math.min(width, imageBounds.width - x);
    57 		height = Math.min(height, imageBounds.height - y);
    57 		height = Math.min(height, imageBounds.height - y);
    58 		if (width > 0 && height > 0)
    58 		if (width > 0 && height > 0)
    59 			gc.drawImage(image, x, y, width, height, 0, 0, width, height);
    59 			gc.drawImage(image, x, y, width, height, 0, 0, width, height);
       
    60 //		gc.drawText(getClass().getSimpleName(), 2, 2);
    60 //		gc.setForeground(gc.getDevice().getSystemColor(SWT.COLOR_WHITE));
    61 //		gc.setForeground(gc.getDevice().getSystemColor(SWT.COLOR_WHITE));
    61 //		gc.drawRectangle(1, 1, width - 2, height - 2);
    62 //		gc.drawRectangle(1, 1, width - 2, height - 2);
    62 	}
    63 	}
    63 
    64 
    64 }
    65 }