diff options
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; }; |