SCI/newgui: undithering of picture now possible (just follow instructions in gui_screen.cpp)
svn-id: r44742
This commit is contained in:
parent
0e3b634ecb
commit
7f78a7c6be
2 changed files with 12 additions and 2 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue