aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/screen.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-08-26 11:34:35 +0000
committerTorbjörn Andersson2006-08-26 11:34:35 +0000
commitca387f158537dad55d11725247c8224678108e2f (patch)
tree2fe95e9c4bc79b3ee1891ff1d5c2777fdf230bee /engines/sword1/screen.cpp
parent4de0c30ad1bdec5e37a4ebb5c3ea6ca5f07eff09 (diff)
downloadscummvm-rg350-ca387f158537dad55d11725247c8224678108e2f.tar.gz
scummvm-rg350-ca387f158537dad55d11725247c8224678108e2f.tar.bz2
scummvm-rg350-ca387f158537dad55d11725247c8224678108e2f.zip
Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCA
player does not support the (unreleased) multi-lingual cutscene pack, since I don't have one to test with. It needs to be cleaned up a bit, but the next step will be to clean up the MPEG decoder first. svn-id: r23753
Diffstat (limited to 'engines/sword1/screen.cpp')
-rw-r--r--engines/sword1/screen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 26672b3a3c..57a9b6137c 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -64,6 +64,14 @@ Screen::~Screen(void) {
quitScreen();
}
+void Screen::clearScreen(void) {
+ if (_screenBuf) {
+ _fullRefresh = true;
+ memset(_screenBuf, 0, _scrnSizeX * _scrnSizeY);
+ _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480);
+ }
+}
+
void Screen::useTextManager(Text *pTextMan) {
_textMan = pTextMan;
}