summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-17 12:48:06 +0000
committerrubidium <rubidium@openttd.org>2008-05-17 12:48:06 +0000
commit8b5421290027ab67cba25225111e3561ddd7af07 (patch)
tree95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/news_gui.cpp
parentd8154e00ac8b0df7ad0ac94c90a393aa5096e573 (diff)
downloadopenttd-8b5421290027ab67cba25225111e3561ddd7af07.tar.xz
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 67bf141a8..c16984114 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -182,7 +182,7 @@ struct NewsWindow : Window {
/* Back up transparency options to draw news view */
TransparencyOptionBits to_backup = _transparency_opt;
_transparency_opt = 0;
- DrawWindowViewport(this);
+ this->DrawViewport();
_transparency_opt = to_backup;
/* Shade the viewport into gray, or color*/
@@ -204,12 +204,12 @@ struct NewsWindow : Window {
break;
default:
- DrawWindowWidgets(this);
+ this->DrawWidgets();
if (!(this->ni->flags & NF_VIEWPORT)) {
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
DrawStringMultiCenter(140, 38, this->ni->string_id, 276);
} else {
- DrawWindowViewport(this);
+ this->DrawViewport();
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
DrawStringMultiCenter(this->width / 2, this->height - 16, this->ni->string_id, this->width - 4);
}
@@ -647,7 +647,7 @@ static void MessageHistoryWndProc(Window *w, WindowEvent *e)
int y = 19;
SetVScrollCount(w, _total_news);
- DrawWindowWidgets(w);
+ w->DrawWidgets();
if (_total_news == 0) break;
NewsID show = min(_total_news, w->vscroll.cap);
@@ -764,7 +764,7 @@ struct MessageOptionsWindow : Window {
if (_news_ticker_sound) this->LowerWidget(WIDGET_NEWSOPT_SOUNDTICKER);
this->widget[WIDGET_NEWSOPT_DROP_SUMMARY].data = _message_opt[this->state];
- DrawWindowWidgets(this);
+ this->DrawWidgets();
/* Draw the string of each setting on each button. */
for (int i = 0, y = 26; i < NT_END; i++, y += 12) {