mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
Gtk2: do not set background color if currentbrush.color = currentbackcolor. issue #22719
git-svn-id: trunk@38384 -
This commit is contained in:
parent
c94ce7f850
commit
d338c2b41f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user