summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui_editcombo.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui_editcombo.pas b/src/gui/gui_editcombo.pas
index 481fca0b..63dcbec4 100644
--- a/src/gui/gui_editcombo.pas
+++ b/src/gui/gui_editcombo.pas
@@ -627,6 +627,13 @@ begin
InflateRect(r, -2, -2);
Canvas.SetClipRect(r);
+ if Enabled then
+ Canvas.SetColor(FBackgroundColor)
+ else
+ Canvas.SetColor(clWindowBackground);
+
+ Canvas.FillRectangle(r);
+
// paint the fake dropdown button
PaintInternalButton;