diff options
author | Sven Hesse | 2008-12-04 18:38:55 +0000 |
---|---|---|
committer | Sven Hesse | 2008-12-04 18:38:55 +0000 |
commit | 5d9c8b7c47d17015048ac3f7650de0fbe426173a (patch) | |
tree | e60150cb5b573b0eb8bb8bd5ce584186faa09401 /engines/gob/video.h | |
parent | b4cc40166eae9b31201d1c856f29b85b62d170a2 (diff) | |
download | scummvm-rg350-5d9c8b7c47d17015048ac3f7650de0fbe426173a.tar.gz scummvm-rg350-5d9c8b7c47d17015048ac3f7650de0fbe426173a.tar.bz2 scummvm-rg350-5d9c8b7c47d17015048ac3f7650de0fbe426173a.zip |
Changing the GobEngine to use its dirty rects also for OSystem-copies, instead of relying on kFeatureAutoComputeDirtyRects
svn-id: r35239
Diffstat (limited to 'engines/gob/video.h')
-rw-r--r-- | engines/gob/video.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/gob/video.h b/engines/gob/video.h index e6baf9a67d..f539fa76e0 100644 --- a/engines/gob/video.h +++ b/engines/gob/video.h @@ -26,6 +26,9 @@ #ifndef GOB_VIDEO_H #define GOB_VIDEO_H +#include "common/list.h" +#include "common/rect.h" + #include "gob/gob.h" namespace Gob { @@ -158,6 +161,11 @@ public: void setFullPalette(PalDesc *palDesc); void setPalette(Color *palette); + void dirtyRectsClear(); + void dirtyRectsAll(); + void dirtyRectsAdd(int16 left, int16 top, int16 right, int16 bottom); + void dirtyRectsApply(int left, int top, int width, int height, int x, int y); + virtual char spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight, int16 x, int16 y, int16 transp, SurfaceDesc *destDesc) = 0; @@ -168,6 +176,9 @@ public: protected: class VideoDriver *_videoDriver; + bool _dirtyAll; + Common::List<Common::Rect> _dirtyRects; + int _curSparse; uint32 _lastSparse; |