aboutsummaryrefslogtreecommitdiff
path: root/graphics/managed_surface.h
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-08 01:40:18 +0200
committerEugene Sandulenko2019-09-03 17:17:14 +0200
commit3851c2d9a6bd17c8dd4ca116711120f893167ab6 (patch)
tree6d0db87c71e86f0a246db9f9a3df063a2ae683d0 /graphics/managed_surface.h
parent14f8e0574f94004966dafbfc1855a7bd194c029f (diff)
downloadscummvm-rg350-3851c2d9a6bd17c8dd4ca116711120f893167ab6.tar.gz
scummvm-rg350-3851c2d9a6bd17c8dd4ca116711120f893167ab6.tar.bz2
scummvm-rg350-3851c2d9a6bd17c8dd4ca116711120f893167ab6.zip
GRAPHICS: Added source transparency parameter to ManagedSurface::transBlit
Diffstat (limited to 'graphics/managed_surface.h')
-rw-r--r--graphics/managed_surface.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/graphics/managed_surface.h b/graphics/managed_surface.h
index c143222bbc..b643d1b8cf 100644
--- a/graphics/managed_surface.h
+++ b/graphics/managed_surface.h
@@ -235,8 +235,9 @@ public:
* @param flipped Specifies whether to horizontally flip the image
* @param overrideColor Optional color to use instead of non-transparent pixels from
* the source surface
+ * @param srcAlpha Optional additional transparency applied to src
*/
- void transBlitFrom(const Surface &src, uint transColor = 0, bool flipped = false, uint overrideColor = 0);
+ void transBlitFrom(const Surface &src, uint transColor = 0, bool flipped = false, uint overrideColor = 0, uint srcAlpha = 0xff);
/**
* Copies another surface into this one ignoring pixels of a designated transparent color
@@ -246,9 +247,10 @@ public:
* @param flipped Specifies whether to horizontally flip the image
* @param overrideColor Optional color to use instead of non-transparent pixels from
* the source surface
+ * @param srcAlpha Optional additional transparency applied to src
*/
void transBlitFrom(const Surface &src, const Common::Point &destPos,
- uint transColor = 0, bool flipped = false, uint overrideColor = 0);
+ uint transColor = 0, bool flipped = false, uint overrideColor = 0, uint srcAlpha = 0xff);
/**
* Copies another surface into this one ignoring pixels of a designated transparent color
@@ -259,9 +261,10 @@ public:
* @param flipped Specifies whether to horizontally flip the image
* @param overrideColor Optional color to use instead of non-transparent pixels from
* the source surface
+ * @param srcAlpha Optional additional transparency applied to src
*/
void transBlitFrom(const Surface &src, const Common::Rect &srcRect, const Common::Point &destPos,
- uint transColor = 0, bool flipped = false, uint overrideColor = 0);
+ uint transColor = 0, bool flipped = false, uint overrideColor = 0, uint srcAlpha = 0xff);
/**
* Copies another surface into this one ignoring pixels of a designated transparent color
@@ -273,9 +276,10 @@ public:
* @param flipped Specifies whether to horizontally flip the image
* @param overrideColor Optional color to use instead of non-transparent pixels from
* the source surface
+ * @param srcAlpha Optional additional transparency applied to src
*/
void transBlitFrom(const Surface &src, const Common::Rect &srcRect, const Common::Rect &destRect,
- uint transColor = 0, bool flipped = false, uint overrideColor = 0);
+ uint transColor = 0, bool flipped = false, uint overrideColor = 0, uint srcAlpha = 0xff);
/**
* Clear the entire surface