diff options
Diffstat (limited to 'win32.c')
-rw-r--r-- | win32.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -15,6 +15,11 @@ #define SMART_PALETTE_ANIM +/* Declare the revision tag for Windows */ +#ifdef WITH_REV_HACK + const char _openttd_revision[] = WITH_REV_HACK; +#endif + static struct { HWND main_wnd; HBITMAP dib_sect; @@ -499,9 +504,8 @@ static void MakeWindow(bool full_screen) SetWindowPos(_wnd.main_wnd, 0, x, y, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER); } else { char Windowtitle[50] = "OpenTTD "; - #ifdef WITH_REV_HACK + #ifdef WITH_REV // also show revision number/release in window title - extern const char _openttd_revision[]; strncat(Windowtitle, _openttd_revision, sizeof(Windowtitle)-(strlen(Windowtitle) + 1)); #endif _wnd.main_wnd = CreateWindow("TTD", Windowtitle, style, x, y, w, h, 0, 0, _inst, 0); |