summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-19 13:17:19 +0000
committerrubidium <rubidium@openttd.org>2008-04-19 13:17:19 +0000
commit51c7ba39a4875272b420918e91e36c9b40f2f1a2 (patch)
tree348fbfb9f47ee42508b8c42686b7eeb304b7f0ab /src/news_gui.cpp
parent99733b2b3e98728368ef1c5685c4ddbe6b59daf4 (diff)
downloadopenttd-51c7ba39a4875272b420918e91e36c9b40f2f1a2.tar.xz
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 49a86cbea..88495f4eb 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -442,7 +442,7 @@ static void ShowNewspaper(NewsItem *ni)
_news_type13_desc.top = top;
w = AllocateWindowDesc(&_news_type13_desc);
if (ni->flags & NF_VIEWPORT) {
- AssignWindowViewport(w, 2, 58, 0x1AA, 0x6E,
+ InitializeWindowViewport(w, 2, 58, 426, 110,
ni->data_a | (ni->flags & NF_VEHICLE ? 0x80000000 : 0), ZOOM_LVL_NEWS);
}
break;
@@ -451,7 +451,7 @@ static void ShowNewspaper(NewsItem *ni)
_news_type2_desc.top = top;
w = AllocateWindowDesc(&_news_type2_desc);
if (ni->flags & NF_VIEWPORT) {
- AssignWindowViewport(w, 2, 58, 0x1AA, 0x46,
+ InitializeWindowViewport(w, 2, 58, 426, 70,
ni->data_a | (ni->flags & NF_VEHICLE ? 0x80000000 : 0), ZOOM_LVL_NEWS);
}
break;
@@ -460,7 +460,7 @@ static void ShowNewspaper(NewsItem *ni)
_news_type0_desc.top = top;
w = AllocateWindowDesc(&_news_type0_desc);
if (ni->flags & NF_VIEWPORT) {
- AssignWindowViewport(w, 3, 17, 0x112, 0x2F,
+ InitializeWindowViewport(w, 3, 17, 274, 47,
ni->data_a | (ni->flags & NF_VEHICLE ? 0x80000000 : 0), ZOOM_LVL_NEWS);
}
break;