The attached patch does for win32: - reactivates the handling through cache of ground display - clean up the ressource file (changes viewable through exe properties)
Best regards, Kurosu
Index: wormux.rc =================================================================== --- wormux.rc (revision 546) +++ wormux.rc (working copy) @@ -1,35 +1,46 @@ // Wormux resource for win32 target -101 ICON wormux.ico -VS_VERSION_INFO VERSIONINFO - FILEVERSION 0,7,0,3 - PRODUCTVERSION 0,7,0,3 - FILEFLAGSMASK 0x3fL +#include <winver.h> +#include "config.h" +#if ENABLE_NLS +# define IS_NLS_ENABLED "yes" +#else +# define IS_NLS_ENABLED "no" +#endif + +1 VERSIONINFO +FILEVERSION 0,7,0,0 +PRODUCTVERSION 0,7,0,0 +FILEFLAGSMASK 0x3fL #ifdef _DEBUG - FILEFLAGS 0x1L +FILEFLAGS 0x1L #else - FILEFLAGS 0x0L +FILEFLAGS 0x0L #endif - FILEOS 0x40004L - FILETYPE 0x2L - FILESUBTYPE 0x0L -BEGIN +FILEOS VOS__WINDOWS32 +FILETYPE VFT_APP +{ BLOCK "StringFileInfo" - BEGIN + { BLOCK "000004b0" - BEGIN - VALUE "FileDescription", "Wormux" - VALUE "FileVersion", "0,7,0,3" + { + VALUE "Comments","Localization support: " IS_NLS_ENABLED "." + VALUE "CompanyName", "\000" + VALUE "FileDescription", "Wormux, a balistics model engine :)" + VALUE "FileVersion", PACKAGE_VERSION VALUE "InternalName", "wormux" - VALUE "LegalCopyright", "Copyright (C) 2004" - VALUE "LegalTrademarks", "test" + VALUE "LegalCopyright", "Copyright (C) 2001-2006 Lawrence Azzoug, the Wormux Project et al." + //VALUE "LegalTrademarks", "test" VALUE "OriginalFilename", "wormux.exe" VALUE "ProductName", "wormux" - VALUE "ProductVersion", "0,7,0,3" - END - END + VALUE "ProductVersion", PACKAGE_VERSION + VALUE "SpecialBuild", "Build date: " __DATE__ ", " __TIME__ " with compiler version " __VERSION__ + } + } BLOCK "VarFileInfo" - BEGIN + { VALUE "Translation", 0x0, 1200 - END -END + } +} + +IDI_ICON1 ICON DISCARDABLE "wormux.ico" Index: map/ground.cpp =================================================================== --- map/ground.cpp (revision 546) +++ map/ground.cpp (working copy) @@ -244,10 +244,6 @@ app.video.window.BoxColor( Rectanglei(0, windowSize.y - margin.y, windowSize.x, margin.y), black_color); } -#if defined(WIN32) - // TODO: Why the cache doesn't work on Windows!? - DrawTile(); -#else if( lastPos != cPos ){ lastPos = cPos; DrawTile(); @@ -261,7 +257,6 @@ // Draw on top of new position of particles (redisplayed on top of particles) RedrawParticleList(*world.to_redraw_particles); -#endif } void Ground::RedrawParticleList(std::list<Rectanglei> &list){
_______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev