@ -15,6 +15,11 @@
# define SMART_PALETTE_ANIM
# define SMART_PALETTE_ANIM
/* Declare the revision tag for Windows */
# ifdef WITH_REV_HACK
const char _openttd_revision [ ] = WITH_REV_HACK ;
# endif
static struct {
static struct {
HWND main_wnd ;
HWND main_wnd ;
HBITMAP dib_sect ;
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 ) ;
SetWindowPos ( _wnd . main_wnd , 0 , x , y , w , h , SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER ) ;
} else {
} else {
char Windowtitle [ 50 ] = " OpenTTD " ;
char Windowtitle [ 50 ] = " OpenTTD " ;
# ifdef WITH_REV _HACK
# ifdef WITH_REV
// also show revision number/release in window title
// also show revision number/release in window title
extern const char _openttd_revision [ ] ;
strncat ( Windowtitle , _openttd_revision , sizeof ( Windowtitle ) - ( strlen ( Windowtitle ) + 1 ) ) ;
strncat ( Windowtitle , _openttd_revision , sizeof ( Windowtitle ) - ( strlen ( Windowtitle ) + 1 ) ) ;
# endif
# endif
_wnd . main_wnd = CreateWindow ( " TTD " , Windowtitle , style , x , y , w , h , 0 , 0 , _inst , 0 ) ;
_wnd . main_wnd = CreateWindow ( " TTD " , Windowtitle , style , x , y , w , h , 0 , 0 , _inst , 0 ) ;