diff options
author | Nicola Mettifogo | 2008-11-08 02:32:40 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-11-08 02:32:40 +0000 |
commit | 767485840f8259c8441b2879eec5cb327c79e049 (patch) | |
tree | 7339915678ba9a1e68421985522ec754d4b84aca /engines/parallaction/graphics.h | |
parent | 7cbd04dc23db94c19bca8cec8350206b894b1958 (diff) | |
download | scummvm-rg350-767485840f8259c8441b2879eec5cb327c79e049.tar.gz scummvm-rg350-767485840f8259c8441b2879eec5cb327c79e049.tar.bz2 scummvm-rg350-767485840f8259c8441b2879eec5cb327c79e049.zip |
Got rid of the SurfaceToMultiFrames adapter class.
svn-id: r34938
Diffstat (limited to 'engines/parallaction/graphics.h')
-rw-r--r-- | engines/parallaction/graphics.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h index ac9f096d7e..90cc5f55b7 100644 --- a/engines/parallaction/graphics.h +++ b/engines/parallaction/graphics.h @@ -124,48 +124,7 @@ public: }; -/* - this adapter can handle Surfaces containing multiple frames, - provided all these frames are the same width and height -*/ -struct SurfaceToMultiFrames : public Frames { - - uint _num; - uint _width, _height; - Graphics::Surface *_surf; - - SurfaceToMultiFrames(uint num, uint w, uint h, Graphics::Surface *surf) : _num(num), _width(w), _height(h), _surf(surf) { - - } - - ~SurfaceToMultiFrames() { - delete _surf; - } - uint16 getNum() { - return _num; - } - byte* getData(uint16 index) { - assert(index < _num); - return (byte*)_surf->getBasePtr(0, _height * index); - } - void getRect(uint16 index, Common::Rect &r) { - assert(index < _num); - r.left = 0; - r.top = 0; - r.setWidth(_width); - r.setHeight(_height); - } - uint getRawSize(uint16 index) { - assert(index < _num); - return getSize(index); - } - uint getSize(uint16 index) { - assert(index < _num); - return _width * _height; - } - -}; struct MaskBuffer { // handles a 2-bit depth buffer used for z-buffering |