diff options
author | Nicola Mettifogo | 2007-08-11 13:07:21 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-11 13:07:21 +0000 |
commit | 8c2ae45ab443ac4b9d3d21341fbb74b44858fd8f (patch) | |
tree | 662ffb2e86c5781225e78122700b5a638dcce9be /engines/parallaction/graphics.cpp | |
parent | 2c6c654435d94b523ac458fc18ebce46fdce1c21 (diff) | |
download | scummvm-rg350-8c2ae45ab443ac4b9d3d21341fbb74b44858fd8f.tar.gz scummvm-rg350-8c2ae45ab443ac4b9d3d21341fbb74b44858fd8f.tar.bz2 scummvm-rg350-8c2ae45ab443ac4b9d3d21341fbb74b44858fd8f.zip |
Overhaul of background/mask/path handling:
- added new BackgroundInfo structure
- added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation.
- simplified loading and handling of background resources.
svn-id: r28524
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r-- | engines/parallaction/graphics.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 80185ef73d..536ac76583 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -765,21 +765,11 @@ void Gfx::restoreBackground(const Common::Rect& r) { void Gfx::setBackground(Graphics::Surface *surface) { - if (_buffers[kBit2]) { - _buffers[kBit2]->free(); - delete _buffers[kBit2]; - } - _buffers[kBit2] = surface; copyScreen(kBit2, kBitBack); } void Gfx::setMask(MaskBuffer *buffer) { - if (_depthMask) { - _depthMask->free(); - delete _depthMask; - } - _depthMask = buffer; } @@ -882,21 +872,11 @@ Gfx::Gfx(Parallaction* vm) : Gfx::~Gfx() { - if (_depthMask) { - _depthMask->free(); - delete _depthMask; - } - _buffers[kBitFront]->free(); delete _buffers[kBitFront]; _buffers[kBitBack]->free(); delete _buffers[kBitBack]; - if (_buffers[kBit2]) { - _buffers[kBit2]->free(); - delete _buffers[kBit2]; - } - delete _fonts[kFontDialogue]; delete _fonts[kFontLabel]; delete _fonts[kFontMenu]; |