aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen.h
diff options
context:
space:
mode:
authorJohannes Schickel2006-05-28 12:19:45 +0000
committerJohannes Schickel2006-05-28 12:19:45 +0000
commit1750be5b5a1dc8f89d786db143575e661bc3c11c (patch)
tree5c0bf705794b7fb9a0f68e5de63ca25852b1e2cf /engines/kyra/screen.h
parentd5c74ee633fcedf706f72e3398256d4a19efd834 (diff)
downloadscummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.tar.gz
scummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.tar.bz2
scummvm-rg350-1750be5b5a1dc8f89d786db143575e661bc3c11c.zip
- makes Screen::getPagePtr private
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling) - moves KyraEngine::loadBitmap to Screen svn-id: r22716
Diffstat (limited to 'engines/kyra/screen.h')
-rw-r--r--engines/kyra/screen.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/kyra/screen.h b/engines/kyra/screen.h
index 0b6426847c..2c7140a0e1 100644
--- a/engines/kyra/screen.h
+++ b/engines/kyra/screen.h
@@ -92,7 +92,8 @@ public:
bool init();
void updateScreen();
- uint8 *getPagePtr(int pageNum);
+ const uint8 *getCPagePtr(int pageNum) const;
+ uint8 *getPageRect(int pageNum, int x, int y, int w, int h);
void clearPage(int pageNum);
int setCurPage(int pageNum);
void clearCurPage();
@@ -135,6 +136,9 @@ public:
static void decodeFrameDeltaPage(uint8 *dst, const uint8 *src, int pitch, int noXor);
uint8 *encodeShape(int x, int y, int w, int h, int flags);
void copyRegionToBuffer(int pageNum, int x, int y, int w, int h, uint8 *dest);
+ void loadBitmap(const char *filename, int tempPage, int dstPage, uint8 *palData);
+
+ uint8 *getMaskBuffer() { return getPagePtr(5); }
void shakeScreen(int times);
@@ -186,6 +190,8 @@ public:
static const ScreenDim _screenDimTableK3[];
static const int _screenDimTableCountK3;
private:
+ uint8 *getPagePtr(int pageNum);
+
int16 encodeShapeAndCalculateSize(uint8 *from, uint8 *to, int size);
void restoreMouseRect();
void copyMouseToScreen();