aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/video_surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-28 20:24:27 -0400
committerPaul Gilbert2016-09-28 20:24:27 -0400
commitaba58e6042a1247f36379e69b3338eae1d58c999 (patch)
tree12e0207fb8c605c8f5bda808b4b70b10543cad9c /engines/titanic/support/video_surface.cpp
parent0da273fc8c843a6248e11f006d51a4817e3d8e37 (diff)
downloadscummvm-rg350-aba58e6042a1247f36379e69b3338eae1d58c999.tar.gz
scummvm-rg350-aba58e6042a1247f36379e69b3338eae1d58c999.tar.bz2
scummvm-rg350-aba58e6042a1247f36379e69b3338eae1d58c999.zip
TITANIC: Clarify movie secondary video tracks as a transparency mask
Diffstat (limited to 'engines/titanic/support/video_surface.cpp')
-rw-r--r--engines/titanic/support/video_surface.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/titanic/support/video_surface.cpp b/engines/titanic/support/video_surface.cpp
index b5f668793a..50a5ca5f16 100644
--- a/engines/titanic/support/video_surface.cpp
+++ b/engines/titanic/support/video_surface.cpp
@@ -32,8 +32,8 @@ int CVideoSurface::_videoSurfaceCounter = 0;
CVideoSurface::CVideoSurface(CScreenManager *screenManager) :
_screenManager(screenManager), _rawSurface(nullptr), _movie(nullptr),
_pendingLoad(false), _transBlitFlag(false), _fastBlitFlag(false),
- _movieFrameSurface(nullptr), _transparencyMode(TRANS_DEFAULT),
- _freeMovieSurface(DisposeAfterUse::NO), _hasFrame(true), _lockCount(0) {
+ _transparencySurface(nullptr), _transparencyMode(TRANS_DEFAULT),
+ _freeTransparencySurface(DisposeAfterUse::NO), _hasFrame(true), _lockCount(0) {
_videoSurfaceNum = _videoSurfaceCounter++;
}
@@ -42,8 +42,8 @@ CVideoSurface::~CVideoSurface() {
_videoSurfaceCounter -= freeSurface();
--_videoSurfaceCounter;
- if (_freeMovieSurface == DisposeAfterUse::YES)
- delete _movieFrameSurface;
+ if (_freeTransparencySurface == DisposeAfterUse::YES)
+ delete _transparencySurface;
}
void CVideoSurface::setSurface(CScreenManager *screenManager, DirectDrawSurface *surface) {
@@ -138,8 +138,8 @@ void CVideoSurface::blitRect1(const Rect &srcRect, const Rect &destRect, CVideoS
if (src->_fastBlitFlag) {
_rawSurface->blitFrom(*src->_rawSurface, srcRect, Point(destRect.left, destRect.top));
- } else if (getMovieFrameSurface()) {
- movieBlitRect(srcRect, destRect, src);
+ } else if (getTransparencySurface()) {
+ transBlitRect(srcRect, destRect, src);
} else {
_rawSurface->transBlitFrom(*src->_rawSurface, srcRect, destRect, src->getTransparencyColor());
}
@@ -149,8 +149,8 @@ void CVideoSurface::blitRect1(const Rect &srcRect, const Rect &destRect, CVideoS
}
void CVideoSurface::blitRect2(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) {
- if (getMovieFrameSurface()) {
- movieBlitRect(srcRect, destRect, src);
+ if (getTransparencySurface()) {
+ transBlitRect(srcRect, destRect, src);
} else {
src->lock();
lock();
@@ -162,7 +162,7 @@ void CVideoSurface::blitRect2(const Rect &srcRect, const Rect &destRect, CVideoS
}
}
-void CVideoSurface::movieBlitRect(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) {
+void CVideoSurface::transBlitRect(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) {
if (lock()) {
if (src->lock()) {
Graphics::ManagedSurface *srcSurface = src->_rawSurface;