aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/video_surface.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-26 10:53:47 -0500
committerPaul Gilbert2016-11-26 15:25:20 -0500
commit63ec47e62f23e310786168cd596667015b2d2523 (patch)
tree0b5aca8f248a3d2c9e81a3411192dbd3ecc9894c /engines/titanic/support/video_surface.h
parent4e06799122c0b763d2a44f0ce46d2ab186bdab5d (diff)
downloadscummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.tar.gz
scummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.tar.bz2
scummvm-rg350-63ec47e62f23e310786168cd596667015b2d2523.zip
TITANIC: Add support for 32-bit surfaces
Some of the game videos have alpha levels, which are lost if the surfaces are converted to 16-bit. This adds better support for creating 32-bit video surfaces, so the information won't be lost
Diffstat (limited to 'engines/titanic/support/video_surface.h')
-rw-r--r--engines/titanic/support/video_surface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/support/video_surface.h b/engines/titanic/support/video_surface.h
index 390e70bc33..77b9e61ad7 100644
--- a/engines/titanic/support/video_surface.h
+++ b/engines/titanic/support/video_surface.h
@@ -176,12 +176,12 @@ public:
/**
* Recreates the surface
*/
- virtual void recreate(int width, int height) = 0;
+ virtual void recreate(int width, int height, int bpp = 16) = 0;
/**
* Resizes the surface
*/
- virtual void resize(int width, int height) = 0;
+ virtual void resize(int width, int height, int bpp = 16) = 0;
/**
* Detachs the underlying raw surface
@@ -423,12 +423,12 @@ public:
/**
* Recreates the surface with the designated size
*/
- virtual void recreate(int width, int height);
+ virtual void recreate(int width, int height, int bpp = 16);
/**
* Resizes the surface
*/
- virtual void resize(int width, int height);
+ virtual void resize(int width, int height, int bpp = 16);
/**
* Detachs the underlying raw surface