Skip to content

Commit 6afce0b

Browse files
committed
Revert "remove shade range check from shader"
This reverts commit 7f5100d. I can't find any problems caused by the change but removing the change from the "Standart" routine does cause problems so I can't really assume that shades will be within the alloewed range apparently.
1 parent ed431a4 commit 6afce0b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Engine/Surface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,10 @@ struct ColorReplace
704704
if(src)
705705
{
706706
const int newShade = (src&15) + shade;
707-
#if 0
708707
if (newShade > 15)
709708
// so dark it would flip over to another color - make it black instead
710709
dest = 15;
711710
else
712-
#endif
713711
dest = newColor | newShade;
714712
}
715713
}

0 commit comments

Comments
 (0)