From c7983736e6e8b9dfa2be5a93a8aeeb69d76f730a Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Tue, 5 Dec 2023 00:38:23 +0100 Subject: [PATCH] Apply change from guichan 162a41408eda35b9631d4bcd31056a1829b991d5 (Jan 3th 2008). - A text field's background colour is now configurable. --- TODO | 2 +- src/widgets/textfield.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index addc440..31a85b3 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -* Continue rebasing from 91cee78f77fdcce05c4dab446676558adcf6a8d6 +* Continue rebasing from 00d4287a5411f0f99c60b87e62fef26437e21ac6 * Add a focus listener interface. * Make focus apply synchronously. * Graphics and input objects for DirectX. diff --git a/src/widgets/textfield.cpp b/src/widgets/textfield.cpp index ca058fe..f373b79 100644 --- a/src/widgets/textfield.cpp +++ b/src/widgets/textfield.cpp @@ -125,7 +125,7 @@ namespace gcn // about the border. graphics->pushClipArea(Rectangle(1, 1, getWidth() - 2, getHeight() - 2)); - graphics->setColor(Color(0xffffff)); + graphics->setColor(getBackgroundColor()); graphics->fillRectangle(Rectangle(0, 0, getWidth(), getHeight())); if (isFocused())