summaryrefslogtreecommitdiff
path: root/src/misc_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/misc_gui.cpp
parent61637f493afd89ebab58ae6282b80fe326db33af (diff)
downloadopenttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 4316adc7d..8721d8e80 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -79,11 +79,6 @@ public:
char landinfo_data[LAND_INFO_LINE_END][LAND_INFO_LINE_BUFF_SIZE];
TileIndex tile;
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void DrawWidget(const Rect &r, int widget) const
{
if (widget != LIW_BACKGROUND) return;
@@ -473,11 +468,6 @@ struct AboutWindow : public Window {
*size = maxdim(*size, d);
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void DrawWidget(const Rect &r, int widget) const
{
if (widget != AW_SCROLLING_TEXT) return;
@@ -641,11 +631,6 @@ public:
return pt;
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void OnInvalidateData(int data)
{
/* If company gets shut down, while displaying an error about it, remove the error message. */
@@ -896,12 +881,6 @@ struct TooltipsWindow : public Window
DrawStringMultiLine(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, r.bottom - WD_FRAMERECT_BOTTOM, this->string_id, TC_FROMSTRING, SA_CENTER);
}
-
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void OnMouseLoop()
{
/* Always close tooltips when the cursor is not in our window. */
@@ -1520,11 +1499,6 @@ struct QueryWindow : public Window {
DrawStringMultiLine(r.left, r.right, r.top, r.bottom, this->message, TC_FROMSTRING, SA_CENTER);
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void OnClick(Point pt, int widget, int click_count)
{
switch (widget) {