Commit d338c2b4 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Gtk2: do not set background color if currentbrush.color = currentbackcolor. issue #22719

git-svn-id: trunk@38384 -
parent c94ce7f8
......@@ -9723,7 +9723,11 @@ begin
(DevCtx.CurrentBackColor.Colormap <> nil) then
begin
EnsureGCColor(DC, dccCurrentBackColor, DevCtx.GDIObjects[gdiBrush]^.GDIBrushFill = GDK_SOLID, True);
BackGroundColor := @DevCtx.CurrentBackColor.Color;
//do not set BackGroundColor if CurrentBrush.Color = CurrentBackColor.
//issue #22719
if TGDKColorToTColor(DevCtx.CurrentBackColor.Color) <>
TGDKColorToTColor(DevCtx.GetBrush^.GDIBrushColor.Color) then
BackGroundColor := @DevCtx.CurrentBackColor.Color;
end;
DevCtx.DrawTextWithColors(Str, Count,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment