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

git-svn-id: trunk@38384 -
This commit is contained in:
zeljko 2012-08-26 12:04:15 +00:00
parent c94ce7f850
commit d338c2b41f

View File

@ -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,