mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
LibVT: Don't clip TerminalWidget's drawing to avoid scroller
The scroller might be hidden or (in theory) non-opaque.
This commit is contained in:
parent
e8519156bc
commit
87630c5fd5
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/mhjacobson Commit: https://github.com/SerenityOS/serenity/commit/87630c5fd58 Pull-request: https://github.com/SerenityOS/serenity/pull/11937
@ -265,9 +265,6 @@ void TerminalWidget::paint_event(GUI::PaintEvent& event)
|
|||||||
|
|
||||||
painter.add_clip_rect(event.rect());
|
painter.add_clip_rect(event.rect());
|
||||||
|
|
||||||
Gfx::IntRect terminal_buffer_rect(frame_inner_rect().top_left(), { frame_inner_rect().width() - m_scrollbar->width(), frame_inner_rect().height() });
|
|
||||||
painter.add_clip_rect(terminal_buffer_rect);
|
|
||||||
|
|
||||||
if (visual_beep_active)
|
if (visual_beep_active)
|
||||||
painter.clear_rect(frame_inner_rect(), terminal_color_to_rgb(VT::Color::named(VT::Color::ANSIColor::Red)));
|
painter.clear_rect(frame_inner_rect(), terminal_color_to_rgb(VT::Color::named(VT::Color::ANSIColor::Red)));
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user