by TazDevil76 » Apr 18, 2005 @ 8:12pm
I just tried something...I added this function to palette.cpp:
byte ScummEngine::adjustBrightness(byte data, float factor)
{
int newValue = data*factor;
return newValue > 255 ? 255 : (byte)newValue;
}
And then I changed the else-part of ScummEnginge::updatePalette():
...
} else {
*p++ = adjustBrightness(data[0], 1.5f);
*p++ = adjustBrightness(data[1], 1.5f);
*p++ = adjustBrightness(data[2], 1.5f);
*p++ = 0;
}
...
The factor 1.5 gives very good results on my 3870 - I can play DOTT without guessing where to click. I think this feature should really be included and able to be adjusted in the options menu.
I would do it myself for "my own" PocketScummVM version but I'm still havin loads of problems when running my compiled version: no sound, tons of exceptions and linker errors...still hoping for a ZIP of a eVC4 workspace and all needed files.
Regards,
René