Update of /cvsroot/netrek/client/netrekxp/include In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21032/include Modified Files: struct.h Log Message: Fix 2 problems found by profiling, both repeated strcmp calls, one in the hockey_mode check and one in the SDB lookup function. Added new set of flags to window structure, sdb_flags, that are set on window creation to flag a window as "local" or "map", rather than having to string compare the name. A few changes in compiler settings from moving to VS 2005 PE, also some flags that were changed to work for profiling. Index: struct.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/struct.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- struct.h 25 Feb 2007 00:18:59 -0000 1.14 +++ struct.h 27 Feb 2007 08:37:06 -0000 1.15 @@ -616,6 +616,11 @@ #define WAM_ALL 0x08 #define WAM_PHASER 0x10 +/* SDB flags for windows that use double buffering */ +#define SDB_FLAG_NONE 0x00 +#define SDB_FLAG_LOCAL 0x01 +#define SDB_FLAG_MAP 0x02 + typedef struct tagWindow { HWND hwnd; @@ -644,6 +649,7 @@ int orig_width; int orig_height; int wam; /* Window Allowed Messages */ + int sdb_flags; /* SDB flags */ } Window;