521 val chunks = text_area.getChunksOfScreenLine(screen_line) |
521 val chunks = text_area.getChunksOfScreenLine(screen_line) |
522 if (chunks != null) { |
522 if (chunks != null) { |
523 try { |
523 try { |
524 val line_start = buffer.getLineStartOffset(line) |
524 val line_start = buffer.getLineStartOffset(line) |
525 gfx.clipRect(x0, y + line_height * i, Integer.MAX_VALUE, line_height) |
525 gfx.clipRect(x0, y + line_height * i, Integer.MAX_VALUE, line_height) |
526 val w = paint_chunk_list(rendering, gfx, line_start, chunks, x0, y0).toInt |
526 val w = |
|
527 paint_chunk_list(rendering, gfx, line_start, chunks, x0.toFloat, y0.toFloat).toInt |
527 gfx.clipRect(x0 + w.toInt, 0, Integer.MAX_VALUE, Integer.MAX_VALUE) |
528 gfx.clipRect(x0 + w.toInt, 0, Integer.MAX_VALUE, Integer.MAX_VALUE) |
528 orig_text_painter.paintValidLine(gfx, |
529 orig_text_painter.paintValidLine(gfx, |
529 screen_line, line, start(i), end(i), y + line_height * i) |
530 screen_line, line, start(i), end(i), y + line_height * i) |
530 } finally { gfx.setClip(clip) } |
531 } finally { gfx.setClip(clip) } |
531 } |
532 } |