mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Use alpha blending for invisible character painter
This commit is contained in:
parent
525d297214
commit
b3495a8044
1 changed files with 3 additions and 0 deletions
|
@ -141,7 +141,10 @@ public class InvisibleCharacterPainter implements IPainter, PaintListener {
|
||||||
int startOffset= fTextWidget.getOffsetAtLine(startLine);
|
int startOffset= fTextWidget.getOffsetAtLine(startLine);
|
||||||
int endOffset =
|
int endOffset =
|
||||||
endLine < lineCount - 1 ? fTextWidget.getOffsetAtLine(endLine + 1) : fTextWidget.getCharCount();
|
endLine < lineCount - 1 ? fTextWidget.getOffsetAtLine(endLine + 1) : fTextWidget.getCharCount();
|
||||||
|
int alpha= gc.getAlpha();
|
||||||
|
gc.setAlpha(100);
|
||||||
handleDrawRequest(gc, startOffset, endOffset);
|
handleDrawRequest(gc, startOffset, endOffset);
|
||||||
|
gc.setAlpha(alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue