diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 9 | ||||
-rw-r--r-- | engines/dreamweb/dreamweb.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 7 |
3 files changed, 6 insertions, 11 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index f2a91fa098..619efa24f0 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -345,15 +345,6 @@ void DreamWebEngine::fadeDos() { } } -void DreamWebEngine::setPalette() { - processEvents(); - unsigned n = (uint16)_context.cx; - uint8 *src = _context.ds.ptr(_context.si, n * 3); - setPalette(src, _context.al, n); - _context.si += n * 3; - _context.cx = 0; -} - void DreamWebEngine::getPalette(uint8 *data, uint start, uint count) { _system->getPaletteManager()->grabPalette(data, start, count); while(count--) diff --git a/engines/dreamweb/dreamweb.h b/engines/dreamweb/dreamweb.h index b8fb315498..37db99b648 100644 --- a/engines/dreamweb/dreamweb.h +++ b/engines/dreamweb/dreamweb.h @@ -101,7 +101,6 @@ public: void mouseCall(uint16 *x, uint16 *y, uint16 *state); //fill mouse pos and button state void processEvents(); - void setPalette(); void fadeDos(); void blit(const uint8 *src, int pitch, int x, int y, int w, int h); void cls(); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index fef298f107..5f8ff8c811 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1109,7 +1109,12 @@ void DreamGenContext::set16ColPalette() { } void DreamGenContext::showGroup() { - engine->setPalette(); + engine->processEvents(); + unsigned n = (uint16)cx; + uint8 *src = ds.ptr(si, n * 3); + engine->setPalette(src, al, n); + si += n * 3; + cx = 0; } void DreamGenContext::fadeDOS() { |