1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

resolved a name conflict on the mac

This commit is contained in:
Michael Scharf 2007-10-17 22:33:54 +00:00
parent 494e3e0027
commit c52fca1e6e

View file

@ -153,7 +153,7 @@ public abstract class VirtualCanvas extends Canvas {
* @param gc
*/
abstract protected void paint(GC gc);
protected Color getBackgroundColor() {
protected Color getTerminalBackgroundColor() {
// return getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND);
return getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
}
@ -164,7 +164,7 @@ public abstract class VirtualCanvas extends Canvas {
int marginHeight = (clipping.y+clipping.height) - height;
if(marginWidth>0||marginHeight>0){
Color bg=getBackground();
gc.setBackground(getBackgroundColor());
gc.setBackground(getTerminalBackgroundColor());
if (marginWidth > 0) {
gc.fillRectangle (width, clipping.y, marginWidth, clipping.height);
}