Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
FPC
Lazarus
Lazarus
Commits
d338c2b4
Commit
d338c2b4
authored
Aug 26, 2012
by
Željan Rikalo
🏊🏼
Browse files
Gtk2: do not set background color if currentbrush.color = currentbackcolor. issue
#22719
git-svn-id: trunk@38384 -
parent
c94ce7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcl/interfaces/gtk2/gtk2winapi.inc
View file @
d338c2b4
...
...
@@ -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
,
...
...
FPC Admin account
@fpc_admin
mentioned in issue
#22719 (closed)
·
Jul 28, 2021
mentioned in issue
#22719 (closed)
mentioned in issue #22719
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment