Ticket #9055: ww_palette.patch
File ww_palette.patch, 1.0 KB (added by , 15 years ago) |
---|
-
engines/agos/vga_e2.cpp
354 354 } 355 355 356 356 void AGOSEngine::vc56_fullScreen() { 357 uint8 palette[1024];357 uint8 *palette = _currentPalette; 358 358 359 359 Graphics::Surface *screen = _system->lockScreen(); 360 360 byte *dst = (byte *)screen->pixels; … … 381 381 } 382 382 383 383 void AGOSEngine::vc57_blackPalette() { 384 uint8 palette[1024];384 uint8 *palette = _currentPalette; 385 385 memset(palette, 0, sizeof(palette)); 386 386 _system->setPalette(palette, 0, 256); 387 387 } -
engines/agos/vga_ww.cpp
197 197 //fullFade(); 198 198 src = _curVgaFile2 + 32; 199 199 200 uint8 palette[1024];200 uint8 *palette = _currentPalette; 201 201 for (int i = 0; i < 256; i++) { 202 202 palette[i * 4 + 0] = *src++ * 4; 203 203 palette[i * 4 + 1] = *src++ * 4;