aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-07-29 11:17:07 +0200
committeruruk2014-07-29 11:17:07 +0200
commit375a7c3b15ef68e95d7169973f7aaf144d7a35ac (patch)
tree6726bdd27337875b3feda4a8fa223063001879c4
parent70f54c6609c5f3f66e4223d35a895b6a18e9a9a0 (diff)
downloadscummvm-rg350-375a7c3b15ef68e95d7169973f7aaf144d7a35ac.tar.gz
scummvm-rg350-375a7c3b15ef68e95d7169973f7aaf144d7a35ac.tar.bz2
scummvm-rg350-375a7c3b15ef68e95d7169973f7aaf144d7a35ac.zip
CGE2: Implement snCycle, add stub for Vga::rotate().
-rw-r--r--engines/cge2/snail.cpp2
-rw-r--r--engines/cge2/vga13h.cpp5
-rw-r--r--engines/cge2/vga13h.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index 3fab991a69..240b70a557 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -579,7 +579,7 @@ void CGE2Engine::snFlash(bool on) {
}
void CGE2Engine::snCycle(int cnt) {
- warning("STUB: CGE2Engine::snCycle()");
+ _vga->_rot._len = cnt;
}
void CGE2Engine::snWalk(Sprite *spr, int val) {
diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp
index 6db73f4836..856ee68faf 100644
--- a/engines/cge2/vga13h.cpp
+++ b/engines/cge2/vga13h.cpp
@@ -992,6 +992,7 @@ void Vga::show() {
_vm->_mouse->show();
update();
+ rotate();
for (Sprite *spr = _showQ->first(); spr; spr = spr->_next) {
spr->hide();
@@ -1033,6 +1034,10 @@ void Vga::update() {
g_system->updateScreen();
}
+void Vga::rotate() {
+ warning("STUB: Vga::rotate()");
+}
+
void Vga::clear(uint8 color) {
for (int paneNum = 0; paneNum < 4; paneNum++)
_page[paneNum]->fillRect(Common::Rect(0, 0, kScrWidth, kScrHeight), color);
diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h
index d98402e3e5..d8fe7156b6 100644
--- a/engines/cge2/vga13h.h
+++ b/engines/cge2/vga13h.h
@@ -321,6 +321,7 @@ public:
bool _mono;
Graphics::Surface *_page[4];
Dac *_sysPal;
+ struct { uint8 _org, _len, _cnt, _dly; } _rot;
Vga(CGE2Engine *vm);
~Vga();
@@ -334,6 +335,7 @@ public:
void sunset();
void show();
void update();
+ void rotate();
void palToDac(const byte *palData, Dac *tab);
void dacToPal(const Dac *tab, byte *palData);