aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/video_surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-20 13:44:19 -0400
committerPaul Gilbert2016-07-20 13:44:19 -0400
commita13134b38d1400bfc6746657faf87907f9575e80 (patch)
treeb704f87ea16cd60da146ecc933875d4ae198ed1f /engines/titanic/support/video_surface.cpp
parentc5792fce4bcf8a4e2e89d83242a248a56f579bc6 (diff)
downloadscummvm-rg350-a13134b38d1400bfc6746657faf87907f9575e80.tar.gz
scummvm-rg350-a13134b38d1400bfc6746657faf87907f9575e80.tar.bz2
scummvm-rg350-a13134b38d1400bfc6746657faf87907f9575e80.zip
TITANIC: Clarify CVideoSurface _field48 as _freeMovieSurface
Diffstat (limited to 'engines/titanic/support/video_surface.cpp')
-rw-r--r--engines/titanic/support/video_surface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/titanic/support/video_surface.cpp b/engines/titanic/support/video_surface.cpp
index 49388b64d8..594f660937 100644
--- a/engines/titanic/support/video_surface.cpp
+++ b/engines/titanic/support/video_surface.cpp
@@ -33,7 +33,7 @@ CVideoSurface::CVideoSurface(CScreenManager *screenManager) :
_screenManager(screenManager), _rawSurface(nullptr), _movie(nullptr),
_pendingLoad(false), _transBlitFlag(false), _fastBlitFlag(false),
_movieFrameSurface(nullptr), _transparencyMode(TRANS_DEFAULT),
- _field48(0), _hasFrame(true), _lockCount(0) {
+ _freeMovieSurface(DisposeAfterUse::NO), _hasFrame(true), _lockCount(0) {
_videoSurfaceNum = _videoSurfaceCounter++;
}
@@ -41,6 +41,9 @@ CVideoSurface::~CVideoSurface() {
if (_ddSurface)
_videoSurfaceCounter -= freeSurface();
--_videoSurfaceCounter;
+
+ if (_freeMovieSurface == DisposeAfterUse::YES)
+ delete _movieFrameSurface;
}
void CVideoSurface::setSurface(CScreenManager *screenManager, DirectDrawSurface *surface) {