diff options
author | Paul Gilbert | 2016-03-17 18:35:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-17 18:35:17 -0400 |
commit | 390487aa43e5507d4d0fb4ae57e7cf726a94f4c1 (patch) | |
tree | 3a1c9d748a99f139a712f62a75005ad7eb6a93b1 /engines/tsage | |
parent | c05a09d33717d1b2c41b258013be589fa63a7097 (diff) | |
download | scummvm-rg350-390487aa43e5507d4d0fb4ae57e7cf726a94f4c1.tar.gz scummvm-rg350-390487aa43e5507d4d0fb4ae57e7cf726a94f4c1.tar.bz2 scummvm-rg350-390487aa43e5507d4d0fb4ae57e7cf726a94f4c1.zip |
GRAPHICS: Cleanup of ManagedSurface and Screen classes
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 8620498c1e..58fa5b8094 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -245,7 +245,7 @@ GfxSurface::GfxSurface(const GfxSurface &s): Graphics::ManagedSurface() { GfxSurface::~GfxSurface() { // Sanity check.. GfxSurface should always be just referencing _rawSurface, // and not directly managing it's own surface - assert(!isManaged()); + assert(disposeAfterUse() == DisposeAfterUse::NO); } void GfxSurface::create(uint16 width, uint16 height) { @@ -287,7 +287,7 @@ void GfxSurface::synchronize(Serializer &s) { if (s.isSaving()) { // Save contents of the surface - if (isManaged()) { + if (disposeAfterUse() == DisposeAfterUse::YES) { s.syncAsSint16LE(this->w); s.syncAsSint16LE(this->h); s.syncBytes((byte *)getPixels(), this->w * this->h); |