1
0
Fork 0
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:
Anton Leherbauer 2006-11-10 15:29:37 +00:00
parent 525d297214
commit b3495a8044

View file

@ -141,7 +141,10 @@ public class InvisibleCharacterPainter implements IPainter, PaintListener {
int startOffset= fTextWidget.getOffsetAtLine(startLine);
int endOffset =
endLine < lineCount - 1 ? fTextWidget.getOffsetAtLine(endLine + 1) : fTextWidget.getCharCount();
int alpha= gc.getAlpha();
gc.setAlpha(100);
handleDrawRequest(gc, startOffset, endOffset);
gc.setAlpha(alpha);
}
}