(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized

All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
This commit is contained in:
smatz
2008-06-26 15:46:19 +00:00
parent 0b75129c24
commit 114c820c56
7 changed files with 544 additions and 159 deletions

View File

@@ -149,7 +149,7 @@ struct Colour {
uint8 b, g, r, a; ///< colour channels in LE order
#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
operator uint32 () { return *(uint32 *)this; }
operator uint32 () const { return *(uint32 *)this; }
};
enum FontSize {