mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibVT: Unbreak semi-transparent terminal background painting
I broke semi-transparent terminals when I added support for alpha blending to Painter::fill_rect(). When we fill the terminal widget background, we don't want blending to take place, we're just looking to replace with an exact color, so now we can use Painter::clear_rect() for that.
This commit is contained in:
parent
c645d9fe4a
commit
7ef51293c7
Notes:
sideshowbarker
2024-07-19 11:05:40 +09:00
Author: https://github.com/awesomekling
Commit: 7ef51293c7
1 changed files with 2 additions and 2 deletions
|
@ -260,9 +260,9 @@ void TerminalWidget::paint_event(GPaintEvent& event)
|
|||
painter.add_clip_rect(terminal_buffer_rect);
|
||||
|
||||
if (m_visual_beep_timer->is_active())
|
||||
painter.fill_rect(frame_inner_rect(), Color::Red);
|
||||
painter.clear_rect(frame_inner_rect(), Color::Red);
|
||||
else
|
||||
painter.fill_rect(frame_inner_rect(), Color(Color::Black).with_alpha(m_opacity));
|
||||
painter.clear_rect(frame_inner_rect(), Color(Color::Black).with_alpha(m_opacity));
|
||||
invalidate_cursor();
|
||||
|
||||
int rows_from_history = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue