summaryrefslogtreecommitdiff
path: root/src/window_gui.h
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/window_gui.h
parent61637f493afd89ebab58ae6282b80fe326db33af (diff)
downloadopenttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index d6ef9a055..b69f01294 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -460,7 +460,10 @@ public:
* The window must be repainted.
* @note This method should not change any state, it should only use drawing functions.
*/
- virtual void OnPaint() {}
+ virtual void OnPaint()
+ {
+ this->DrawWidgets();
+ }
/**
* Draw the contents of a nested widget.