mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid gaps in selection rendering for fractional coordinates - use proper rounding
This commit is contained in:
@@ -261,7 +261,9 @@ class EditorPainter implements TextDrawingCallback {
|
||||
color.equals(myEditor.getColorsScheme().getDefaultBackground()) ||
|
||||
color.equals(myEditor.getBackgroundColor())) return;
|
||||
g.setColor(color);
|
||||
g.fillRect((int)x, y, (int)width, myView.getLineHeight());
|
||||
int xStartRounded = (int)x;
|
||||
int xEndRounded = (int)(x + width);
|
||||
g.fillRect(xStartRounded, y, xEndRounded - xStartRounded, myView.getLineHeight());
|
||||
}
|
||||
|
||||
private void paintCustomRenderers(final Graphics2D g, final int startOffset, final int endOffset) {
|
||||
|
||||
Reference in New Issue
Block a user