From 76094128e7763a3cb6840cfb08ba5166f850dde9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 9 Mar 2019 21:51:36 +0100 Subject: [PATCH] LibGUI: Fix small painting glitch in GScrollBar buttons. --- LibGUI/GStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGUI/GStyle.cpp b/LibGUI/GStyle.cpp index 32a82e82c5..07a8a0202e 100644 --- a/LibGUI/GStyle.cpp +++ b/LibGUI/GStyle.cpp @@ -39,7 +39,7 @@ void GStyle::paint_button(Painter& painter, const Rect& rect, GButtonStyle butto painter.draw_line({ 1, rect.height() - 2 }, { rect.width() - 2, rect.height() - 2 }, highlight_color); } else if (button_style == GButtonStyle::Normal || (button_style == GButtonStyle::CoolBar && hovered)) { // Base - painter.fill_rect({ 3, 3, rect.width() - 5, rect.height() - 5 }, button_color); + painter.fill_rect({ 1, 1, rect.width() - 2, rect.height() - 2 }, button_color); // White highlight painter.draw_line({ 1, 1 }, { rect.width() - 2, 1 }, highlight_color);