aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/transparency_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/support/transparency_surface.h')
-rw-r--r--engines/titanic/support/transparency_surface.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/titanic/support/transparency_surface.h b/engines/titanic/support/transparency_surface.h
index 0391b6d5b7..1b4587a9db 100644
--- a/engines/titanic/support/transparency_surface.h
+++ b/engines/titanic/support/transparency_surface.h
@@ -42,6 +42,11 @@ private:
bool _flag;
bool _flag1;
bool _flag2;
+private:
+ /**
+ * Returns a a pixel from the transparency surface
+ */
+ uint getPixel() const;
public:
/**
* Constructor
@@ -64,19 +69,14 @@ public:
int moveX();
/**
- * Returns a byte from the transparency surface
- */
- uint getPixel() const;
-
- /**
* Returns the alpha value for the pixel (0-31)
*/
- uint getAlpha() const { return 31 - (getPixel() >> 3); }
+ uint getAlpha() const;
/**
* Returns true if the pixel is completely transparent
*/
- bool isPixelTransparent() const { return getAlpha() == 31; }
+ bool isPixelTransparent();
};
} // End of namespace Titanic