From b162094c7609fa37f2eef6be3fed0e26830bc506 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Sep 2012 23:05:16 +0300 Subject: Improve a bit widgets speed. --- src/gui/widgets/textbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/textbox.h') diff --git a/src/gui/widgets/textbox.h b/src/gui/widgets/textbox.h index aafd79627..dcd289a60 100644 --- a/src/gui/widgets/textbox.h +++ b/src/gui/widgets/textbox.h @@ -60,7 +60,7 @@ class TextBox : public gcn::TextBox inline void draw(gcn::Graphics *graphics) { if (mTextColor) - setForegroundColor(*mTextColor); + mForegroundColor = *mTextColor; gcn::TextBox::draw(graphics); } -- cgit v1.2.3-60-g2f50