summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
committeralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
commitf5c6fd1a2582be29c9a5376ccb638781fbf355f7 (patch)
tree8409730a69d50fb7fca3002c94102bb37e7c14b1 /src/cheat_gui.cpp
parent61637f493afd89ebab58ae6282b80fe326db33af (diff)
downloadopenttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index f9715da85..11aea4fdd 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -270,11 +270,6 @@ struct CheatWindow : Window {
size->height = this->header_height + WD_FRAMERECT_TOP + WD_PAR_VSEP_NORMAL + WD_FRAMERECT_BOTTOM + (FONT_HEIGHT_NORMAL + WD_PAR_VSEP_NORMAL) * lengthof(_cheats_ui);
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void OnClick(Point pt, int widget, int click_count)
{
const NWidgetBase *wid = this->GetWidget<NWidgetBase>(CW_PANEL);