mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
SCI/newgui: SciGuiTransitions fadeIn now uses setIntensity() like sierra sci does, fixes blackout in longbow and others
svn-id: r45106
This commit is contained in:
parent
0868fd24d2
commit
1259c3ded7
@ -151,16 +151,10 @@ void SciGuiTransitions::fadeOut() {
|
||||
void SciGuiTransitions::fadeIn() {
|
||||
byte workPalette[4 * 256];
|
||||
GuiPalette *newPalette = &_palette->_sysPalette;
|
||||
int16 stepNr, colorNr;
|
||||
int16 stepNr;
|
||||
|
||||
for (stepNr = 0; stepNr <= 100; stepNr += 10) {
|
||||
for (colorNr = 1; colorNr < 255; colorNr++){
|
||||
workPalette[colorNr * 4 + 0] = newPalette->colors[colorNr].r * stepNr / 100;
|
||||
workPalette[colorNr * 4 + 1] = newPalette->colors[colorNr].g * stepNr / 100;
|
||||
workPalette[colorNr * 4 + 2] = newPalette->colors[colorNr].b * stepNr / 100;
|
||||
workPalette[colorNr * 4 + 3] = 100;
|
||||
}
|
||||
g_system->setPalette(workPalette + 4, 1, 254);
|
||||
_palette->setIntensity(1, 254, 100, true);
|
||||
_gui->wait(2);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user