aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/graphics
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-08-20 15:24:35 +0200
committerEinar Johan Trøan Sømåen2013-08-20 15:25:01 +0200
commit913f03a2ba319bb8f1ec35a980b28dab471aee00 (patch)
treee49f00ad0a7cd777f00b40c3541a313e89efcddb /engines/wintermute/graphics
parentcc16cb5823eebca8d14fc509057b223d1cc22b3f (diff)
downloadscummvm-rg350-913f03a2ba319bb8f1ec35a980b28dab471aee00.tar.gz
scummvm-rg350-913f03a2ba319bb8f1ec35a980b28dab471aee00.tar.bz2
scummvm-rg350-913f03a2ba319bb8f1ec35a980b28dab471aee00.zip
WINTERMUTE: Avoid doing alpha-blits when image doesn't have alpha.
Also detect images with only binary alpha.
Diffstat (limited to 'engines/wintermute/graphics')
-rw-r--r--engines/wintermute/graphics/transform_struct.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/graphics/transform_struct.h b/engines/wintermute/graphics/transform_struct.h
index a54c4cc5d0..f4f97d1ea9 100644
--- a/engines/wintermute/graphics/transform_struct.h
+++ b/engines/wintermute/graphics/transform_struct.h
@@ -42,6 +42,12 @@ const int32 kDefaultOffsetX = 0;
const int32 kDefaultOffsetY = 0;
const int32 kDefaultAngle = 0;
+enum AlphaType {
+ ALPHA_OPAQUE = 0,
+ ALPHA_BINARY = 1,
+ ALPHA_FULL = 2
+};
+
struct TransformStruct {
private:
void init(Point32 zoom, uint32 angle, Point32 hotspot, bool alphaDisable, TSpriteBlendMode blendMode, uint32 alpha, bool mirrorX, bool mirrorY, Point32 offset);