aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx/osystem/base_surface_osystem.h
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/base/gfx/osystem/base_surface_osystem.h
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/base/gfx/osystem/base_surface_osystem.h')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_surface_osystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.h b/engines/wintermute/base/gfx/osystem/base_surface_osystem.h
index da86833517..ad1e9cf737 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.h
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.h
@@ -90,7 +90,7 @@ private:
uint32 getPixelAt(Graphics::Surface *surface, int x, int y);
uint32 _rotation;
- bool _hasAlpha;
+ AlphaType _alphaType;
void *_lockPixels;
int _lockPitch;
byte *_alphaMask;