From 2f8d19d0046b6aa4c2229d081fc44fc7ae55a8ed Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 Jan 2004 20:57:23 +0000 Subject: avoid using huge static structs - they can't be stripped, and increase the exe size (in this case, 16 MB...) svn-id: r12678 --- sword1/animation.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sword1/animation.h') diff --git a/sword1/animation.h b/sword1/animation.h index 61f2b788ac..cee94f341f 100644 --- a/sword1/animation.h +++ b/sword1/animation.h @@ -111,10 +111,8 @@ private: byte pal[4 * 256]; } palettes[50]; #else - static NewGuiColor lookup2[BITDEPTH * BITDEPTH * 256]; + static NewGuiColor *lookup; NewGuiColor * overlay; - static bool lookupInit; - #endif public: @@ -131,7 +129,7 @@ private: void buildLookup(int p, int lines); bool checkPaletteSwitch(); #else - void buildLookup2(void); + void buildLookup(void); void plotYUV(NewGuiColor *lut, int width, int height, byte *const *dat); #endif }; -- cgit v1.2.3