From 6c27f2c071be2fc87133fd479e64a7a2505dfd8f Mon Sep 17 00:00:00 2001 From: MacDue Date: Sat, 17 Dec 2022 19:55:44 +0000 Subject: [PATCH] LibGfx: Don't blend opaque pixels --- Userland/Libraries/LibGfx/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 9088fdbe81..f14b267854 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -1832,7 +1832,7 @@ void Painter::set_pixel(IntPoint p, Color color, bool blend) if (!clip_rect().contains(point / scale())) return; auto& dst = m_target->scanline(point.y())[point.x()]; - if (!blend) + if (!blend || color.alpha() == 255) dst = color.value(); else if (color.alpha()) dst = Color::from_argb(dst).blend(color).value();