diff options
author | Darkvater <Darkvater@openttd.org> | 2006-10-13 15:52:22 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-10-13 15:52:22 +0000 |
commit | 9878797e4584ff0d3955021483e6c7b1dbb0f3a7 (patch) | |
tree | d89c2e1cd2ccca083f9c360a39f87aa236e901af /video/win32_v.c | |
parent | 1e79d68a340565b2a84b21dbd2e229a34fcb9f94 (diff) | |
download | openttd-9878797e4584ff0d3955021483e6c7b1dbb0f3a7.tar.xz |
(svn r6766) -Codechange: Move _openttd_revision[] into the functions that use it instead of global
Diffstat (limited to 'video/win32_v.c')
-rw-r--r-- | video/win32_v.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/win32_v.c b/video/win32_v.c index 05bc4d7a6..279fc4709 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -510,8 +510,6 @@ static void RegisterWndClass(void) } } -extern const char _openttd_revision[]; - static void MakeWindow(bool full_screen) { _fullscreen = full_screen; @@ -572,6 +570,7 @@ static void MakeWindow(bool full_screen) ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag SetWindowPos(_wnd.main_wnd, 0, x, y, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER); } else { + extern const char _openttd_revision[]; char Windowtitle[50]; snprintf(Windowtitle, lengthof(Windowtitle), "OpenTTD %s", _openttd_revision); |