diff options
author | rubidium <rubidium@openttd.org> | 2008-04-19 13:17:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-19 13:17:19 +0000 |
commit | 24b5c910398a06f4bacb54338399fc3b413cdee7 (patch) | |
tree | 348fbfb9f47ee42508b8c42686b7eeb304b7f0ab /src/news_gui.cpp | |
parent | 1dcf912f0693ec90ecaa1b0302d92408d9f9c2fe (diff) | |
download | openttd-24b5c910398a06f4bacb54338399fc3b413cdee7.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.cpp | 6 |
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; |