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 | 1436bbbc842ca5177fcd41c74092919ffacc0e93 (patch) | |
tree | d89c2e1cd2ccca083f9c360a39f87aa236e901af /video | |
parent | 35b059210dc8c2f73ff386483bf11b6c6ab2e496 (diff) | |
download | openttd-1436bbbc842ca5177fcd41c74092919ffacc0e93.tar.xz |
(svn r6766) -Codechange: Move _openttd_revision[] into the functions that use it instead of global
Diffstat (limited to 'video')
-rw-r--r-- | video/sdl_v.c | 3 | ||||
-rw-r--r-- | video/win32_v.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c index b8b79b86b..5ffd33dbf 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -156,8 +156,6 @@ static void GetAvailableVideoMode(int *w, int *h) *h = _resolutions[best][1]; } -extern const char _openttd_revision[]; - #ifndef ICON_DIR #define ICON_DIR "media" #endif @@ -171,6 +169,7 @@ extern const char _openttd_revision[]; static bool CreateMainSurface(int w, int h) { + extern const char _openttd_revision[]; SDL_Surface *newscreen, *icon; char caption[50]; 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); |