From c56c25c78a8fae10a1f8984e2ca7d387ce3b4e28 Mon Sep 17 00:00:00 2001 From: juha Date: Wed, 11 Mar 2020 22:32:59 +0000 Subject: [PATCH] LCL-GTK2: Use correct Brush.Color with non-default Brush.Style. Issue #36709, patch from Anton Kavalenka. git-svn-id: trunk@62743 - --- lcl/interfaces/gtk2/gtk2devicecontext.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/gtk2/gtk2devicecontext.inc b/lcl/interfaces/gtk2/gtk2devicecontext.inc index 1abae8c8ab..a8ce1cef3c 100644 --- a/lcl/interfaces/gtk2/gtk2devicecontext.inc +++ b/lcl/interfaces/gtk2/gtk2devicecontext.inc @@ -1073,7 +1073,7 @@ begin //invert background / foreground colors to match Windows.FillRect behavior //with a 1bit bitmap pattern brush (bit set -> back color, bit unset -> text color) EnsureGCColor(HDC(Self), dccCurrentTextColor, False, True); - EnsureGCColor(HDC(Self), dccCurrentBackColor, False, False); + EnsureGCColor(HDC(Self), dccCurrentBackColor, True, True); gdk_gc_set_stipple(GC, CurrentBrush^.GDIBrushPixmap); //use GDK_OPAQUE_STIPPLED to draw both background and foreground color gdk_gc_set_fill(GC, GDK_OPAQUE_STIPPLED);