SCI/newgui: undithering of picture now possible (just follow instructions in gui_screen.cpp)

svn-id: r44742
This commit is contained in:
Martin Kiewitz 2009-10-07 18:00:49 +00:00
parent 0e3b634ecb
commit 7f78a7c6be
2 changed files with 12 additions and 2 deletions

View file

@ -232,8 +232,12 @@ void SciGuiScreen::dither() {
color = *screenPtr;
if (color & 0xF0) {
color ^= color << 4;
// remove remark to enable undithering
// *displayPtr = color;
// do the actual dithering
color = ((x^y) & 1) ? color >> 4 : color & 0x0F;
*screenPtr = color; *displayPtr = color;
*screenPtr = color;
*displayPtr = color; // put remark here to enable unditherung
}
screenPtr++; displayPtr++;
}