diff options
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r-- | engines/tsage/graphics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 58fa5b8094..7b7b41f0aa 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -229,14 +229,16 @@ void Rect::synchronize(Serializer &s) { /*--------------------------------------------------------------------------*/ -GfxSurface::GfxSurface() : Graphics::ManagedSurface(), _bounds(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) { +GfxSurface::GfxSurface() : Graphics::Screen(0, 0), _bounds(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) { + free(); // Free the 0x0 surface allocated by Graphics::Screen _disableUpdates = false; _lockSurfaceCtr = 0; _transColor = -1; _flags = 0; } -GfxSurface::GfxSurface(const GfxSurface &s): Graphics::ManagedSurface() { +GfxSurface::GfxSurface(const GfxSurface &s): Graphics::Screen(0, 0) { + free(); // Free the 0x0 surface allocated by Graphics::Screen _lockSurfaceCtr = 0; operator=(s); |