diff options
author | Oystein Eftevaag | 2006-08-27 12:30:38 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-08-27 12:30:38 +0000 |
commit | d11e72a168f68d33fce1c3f4ed0b10845c90b285 (patch) | |
tree | 739007f30002a821b20252c730c2033186b420a7 /engines/kyra/screen.cpp | |
parent | 7649160dde01b5d74335e198d43d22188d6b54c6 (diff) | |
download | scummvm-rg350-d11e72a168f68d33fce1c3f4ed0b10845c90b285.tar.gz scummvm-rg350-d11e72a168f68d33fce1c3f4ed0b10845c90b285.tar.bz2 scummvm-rg350-d11e72a168f68d33fce1c3f4ed0b10845c90b285.zip |
Adds voice/chats to the intro, and adds debug strings to the function calls.
svn-id: r23789
Diffstat (limited to 'engines/kyra/screen.cpp')
-rw-r--r-- | engines/kyra/screen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index b01116ce3a..de0a317aec 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -381,6 +381,14 @@ void Screen::copyRegionToBuffer(int pageNum, int x, int y, int w, int h, uint8 * } } +void Screen::copyPage(uint8 srcPage, uint8 dstPage) { + debugC(9, kDebugLevelScreen, "Screen::copyPage(%d, %d)", srcPage, dstPage); + + uint8 *src = getPagePtr(srcPage); + uint8 *dst = getPagePtr(dstPage); + memcpy(dst, src, SCREEN_W * SCREEN_H); +} + void Screen::copyBlockToPage(int pageNum, int x, int y, int w, int h, const uint8 *src) { debugC(9, kDebugLevelScreen, "Screen::copyBlockToPage(%d, %d, %d, %d, %d, %p)", pageNum, x, y, w, h, (const void *)src); assert(x >= 0 && x < Screen::SCREEN_W && y >= 0 && y < Screen::SCREEN_H); |