diff options
author | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
commit | e841bf16d6b955f779e5e30535848bd650d22352 (patch) | |
tree | 843b29df10e35a22304faec81fab929251509d45 /engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | |
parent | e08a0d84a2dd4ebb312fc72b9757c303e351dbb1 (diff) | |
download | scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.gz scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.bz2 scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.zip |
WINTERMUTE: Fix a few warnings pointed out by fuzzie.
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp index 5102d182f9..d3209cb1c0 100644 --- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp @@ -394,12 +394,13 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, float zoomX, flo // TODO: This actually requires us to have the SAME source-offsets every time,
// But no checking is in place for that yet.
- bool hasAlpha;
+ // TODO: Optimize by not doing alpha-blits if we lack or disable alpha
+/* bool hasAlpha;
if (_hasAlpha && !alphaDisable) {
hasAlpha = true;
} else {
hasAlpha = false;
- }
+ }*/
if (alphaDisable) {
warning("BaseSurfaceOSystem::drawSprite - AlphaDisable ignored");
}
|