Implement fade_screen_black() using fullscreen_tint_gl() in GL modes.

git-svn-id: https://svn.eduke32.com/eduke32@3264 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-12-10 18:17:50 +00:00
parent abb54958e1
commit 4caab915ec

View file

@ -2417,13 +2417,13 @@ static void setpalettefade_calc(uint8_t offset);
void fade_screen_black(int32_t moreopaquep) void fade_screen_black(int32_t moreopaquep)
{ {
#ifdef USE_OPENGL
if (getrendermode() >= 3) if (getrendermode() >= 3)
{ {
// we have a ~1 px horizontal line if we don't shift y by -1, fullscreen_tint_gl(0,0,0, moreopaquep ? 168 : 84);
// might need a fix in rotatesprite!
rotatesprite_fs(0, -(1<<16), 65536<<3, 0, 0,0,4,10+16+1+((!moreopaquep)*32)+1024); // tile 0: 64x32
} }
else else
#endif
{ {
Bassert(!offscreenrendering); Bassert(!offscreenrendering);