mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +02:00
Gtk2: do not draw text background if colormap isn't assigned. Second part of issue #21863
git-svn-id: trunk@37031 -
This commit is contained in:
parent
d335785ef6
commit
5c73765c8b
@ -9650,7 +9650,8 @@ begin
|
||||
EnsureGCColor(DC, dccCurrentTextColor, True, False);
|
||||
|
||||
BackGroundColor := nil;
|
||||
if (DevCtx.GDIObjects[gdiBrush] <> nil) and (DevCtx.BkMode = OPAQUE) then
|
||||
if (DevCtx.GDIObjects[gdiBrush] <> nil) and (DevCtx.BkMode = OPAQUE) and
|
||||
(DevCtx.CurrentBackColor.Colormap <> nil) then
|
||||
begin
|
||||
EnsureGCColor(DC, dccCurrentBackColor, DevCtx.GDIObjects[gdiBrush]^.GDIBrushFill = GDK_SOLID, True);
|
||||
BackGroundColor := @DevCtx.CurrentBackColor.Color;
|
||||
|
Loading…
Reference in New Issue
Block a user