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:
parent
494e3e0027
commit
c52fca1e6e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue