diff options
author | smatz <smatz@openttd.org> | 2008-06-26 15:46:19 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-26 15:46:19 +0000 |
commit | 114c820c569ef0280018d8cd268f15021d9e5d20 (patch) | |
tree | bd97ed25466924d63b46a62ae49a31dafcb911f9 /src/gfx_type.h | |
parent | 0b75129c247c03ecaf2505c204b4d7e79e963aea (diff) | |
download | openttd-114c820c569ef0280018d8cd268f15021d9e5d20.tar.xz |
(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.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index f5ed4a328..298513c84 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -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 { |