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 | faebe10d812ac6af644d08128021d39ef06370fd (patch) | |
tree | bd97ed25466924d63b46a62ae49a31dafcb911f9 /src/gfx_type.h | |
parent | 6f3b1745c2c6c38c1642013fed627d61efa0f818 (diff) | |
download | openttd-faebe10d812ac6af644d08128021d39ef06370fd.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 { |