diff options
author | johndoe123 | 2012-10-18 12:44:00 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:47:32 +0200 |
commit | c7ad09c6856cc5e3be805866623d94258360fd60 (patch) | |
tree | 5d57f6ea20c5c4d47f9475d34f45a2a06d4fa0e5 /engines/neverhood | |
parent | a6e9475a3fd49bab9ff463f87734d27782297cdb (diff) | |
download | scummvm-rg350-c7ad09c6856cc5e3be805866623d94258360fd60.tar.gz scummvm-rg350-c7ad09c6856cc5e3be805866623d94258360fd60.tar.bz2 scummvm-rg350-c7ad09c6856cc5e3be805866623d94258360fd60.zip |
NEVERHOOD: Remove BaseSurface::addDirtyRect() which is obsolete as well
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/graphics.cpp | 4 | ||||
-rw-r--r-- | engines/neverhood/graphics.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp index cd2234dd81..b87c447b31 100644 --- a/engines/neverhood/graphics.cpp +++ b/engines/neverhood/graphics.cpp @@ -63,10 +63,6 @@ void BaseSurface::draw() { } } -void BaseSurface::addDirtyRect() { - // TODO -} - void BaseSurface::clear() { _surface->fillRect(Common::Rect(0, 0, _surface->w, _surface->h), 0); ++_version; diff --git a/engines/neverhood/graphics.h b/engines/neverhood/graphics.h index f27ee6295e..3ca3339585 100644 --- a/engines/neverhood/graphics.h +++ b/engines/neverhood/graphics.h @@ -88,7 +88,6 @@ public: BaseSurface(NeverhoodEngine *vm, int priority, int16 width, int16 height); virtual ~BaseSurface(); virtual void draw(); - virtual void addDirtyRect(); void clear(); void drawSpriteResource(SpriteResource &spriteResource); void drawSpriteResourceEx(SpriteResource &spriteResource, bool flipX, bool flipY, int16 width, int16 height); @@ -118,6 +117,7 @@ protected: NRect *_clipRects; uint _clipRectsCount; bool _transparent; + // Version changes each time the pixels are touched in any way byte _version; }; |