IDEA-166059 Corrupted zero latency typing with the new hidpi - preserve caret consistency

This commit is contained in:
Egor.Ushakov
2017-01-19 21:12:01 +03:00
parent 1edf6ff08d
commit 02091b6ed1
@@ -167,7 +167,8 @@ class ImmediatePainter {
fillRect(graphics, rectangle2, attributes2.getBackgroundColor());
drawChar(graphics, c2, p2x, p2y + ascent, font2, attributes2.getForegroundColor());
fillRect(graphics, caretRectangle, getCaretColor(editor));
graphics.setColor(getCaretColor(editor));
graphics.fillRect(caretRectangle.x, caretRectangle.y, caretRectangle.width, caretRectangle.height);
fillRect(graphics, rectangle1, attributes1.getBackgroundColor());
drawChar(graphics, c1, p2x - width1, p2y + ascent, font1, attributes1.getForegroundColor());