1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

Terminal: Clip to the paint event rect

We should try to avoid painting any more than what we're asked to.
This commit is contained in:
Andreas Kling 2019-08-13 13:45:58 +02:00
parent 178788f19a
commit ce6463ba76

View file

@ -175,6 +175,8 @@ void TerminalWidget::paint_event(GPaintEvent& event)
GPainter painter(*this);
painter.add_clip_rect(event.rect());
if (m_visual_beep_timer.is_active())
painter.fill_rect(frame_inner_rect(), Color::Red);
else