mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 09:00:27 +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
|
(DevCtx.CurrentBackColor.Colormap <> nil) then
|
||||||
begin
|
begin
|
||||||
EnsureGCColor(DC, dccCurrentBackColor, DevCtx.GDIObjects[gdiBrush]^.GDIBrushFill = GDK_SOLID, True);
|
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;
|
end;
|
||||||
|
|
||||||
DevCtx.DrawTextWithColors(Str, Count,
|
DevCtx.DrawTextWithColors(Str, Count,
|
||||||
|
Loading…
Reference in New Issue
Block a user