diff options
author | Max Horn | 2011-12-07 11:02:23 +0100 |
---|---|---|
committer | Max Horn | 2011-12-07 11:19:48 +0100 |
commit | f37b7486768b57c3281c10409c4588d6188ef40c (patch) | |
tree | 6b6c5228415e1286507eaf893be4c95b17bc82a0 /engines/dreamweb/dreamweb.cpp | |
parent | ce8b1e06c72b75ea3a4b3a105a8f5493425dcad7 (diff) | |
download | scummvm-rg350-f37b7486768b57c3281c10409c4588d6188ef40c.tar.gz scummvm-rg350-f37b7486768b57c3281c10409c4588d6188ef40c.tar.bz2 scummvm-rg350-f37b7486768b57c3281c10409c4588d6188ef40c.zip |
DREAMWEB: Merge DreamWeb::fadeDos into DreamGenContext::fadeDOS
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 619efa24f0..3151a5963d 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -327,24 +327,6 @@ void DreamWebEngine::mouseCall(uint16 *x, uint16 *y, uint16 *state) { _oldMouseState = newState; } -void DreamWebEngine::fadeDos() { - _context.ds = _context.es = _context.data.word(DreamGen::kBuffers); - return; //fixme later - waitForVSync(); - //processEvents will be called from vsync - uint8 *dst = _context.es.ptr(DreamGen::kStartpal, 768); - getPalette(dst, 0, 64); - for(int fade = 0; fade < 64; ++fade) { - for(int c = 0; c < 768; ++c) { //original sources decrement 768 values -> 256 colors - if (dst[c]) { - --dst[c]; - } - } - setPalette(dst, 0, 64); - waitForVSync(); - } -} - void DreamWebEngine::getPalette(uint8 *data, uint start, uint count) { _system->getPaletteManager()->grabPalette(data, start, count); while(count--) |