summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-26 15:46:19 +0000
committersmatz <smatz@openttd.org>2008-06-26 15:46:19 +0000
commit114c820c569ef0280018d8cd268f15021d9e5d20 (patch)
treebd97ed25466924d63b46a62ae49a31dafcb911f9 /src/gfx_type.h
parent0b75129c247c03ecaf2505c204b4d7e79e963aea (diff)
downloadopenttd-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.h2
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 {