Преглед изворни кода

LibVT: Don't paint selection with opacity

Fixes #5442.
Linus Groh пре 4 година
родитељ
комит
368fe0f7f8
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      Userland/Libraries/LibVT/TerminalWidget.cpp

+ 2 - 3
Userland/Libraries/LibVT/TerminalWidget.cpp

@@ -351,9 +351,8 @@ void TerminalWidget::paint_event(GUI::PaintEvent& event)
             auto character_rect = glyph_rect(visual_row, column);
             auto cell_rect = character_rect.inflated(0, m_line_spacing);
             auto text_color = color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_background_color() : attribute.effective_foreground_color());
-            if ((!visual_beep_active && !has_only_one_background_color) || should_reverse_fill_for_cursor_or_selection) {
-                painter.clear_rect(cell_rect, color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_foreground_color() : attribute.effective_background_color()).with_alpha(m_opacity));
-            }
+            if ((!visual_beep_active && !has_only_one_background_color) || should_reverse_fill_for_cursor_or_selection)
+                painter.clear_rect(cell_rect, color_from_rgb(should_reverse_fill_for_cursor_or_selection ? attribute.effective_foreground_color() : attribute.effective_background_color()));
 
             enum class UnderlineStyle {
                 None,