GTextEditor: Remove some debug spam.

This commit is contained in:
Andreas Kling 2019-03-07 13:26:02 +01:00
parent 77198ef735
commit 9591acc212
Notes: sideshowbarker 2024-07-19 15:08:47 +09:00

View file

@ -104,10 +104,8 @@ void GTextEditor::paint_event(GPaintEvent& event)
painter.draw_text(line_rect, line.text(), TextAlignment::CenterLeft, Color::Black);
}
if (is_focused() && m_cursor_state) {
dbgprintf("draw cursor @ %s (xlated %s, clip %s)\n", cursor_content_rect().to_string().characters(), cursor_content_rect().translated(painter.translation()).to_string().characters(), painter.clip_rect().to_string().characters());
if (is_focused() && m_cursor_state)
painter.fill_rect(cursor_content_rect(), Color::Red);
}
painter.translate(-padding(), -padding());
painter.translate(m_horizontal_scrollbar->value(), m_vertical_scrollbar->value());