From 4caab915ec27dfcb4a1b1a3cf648e602b32b77ae Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 10 Dec 2012 18:17:50 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 337c5f544..64819f17b 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -2417,13 +2417,13 @@ static void setpalettefade_calc(uint8_t offset); void fade_screen_black(int32_t moreopaquep) { +#ifdef USE_OPENGL if (getrendermode() >= 3) { - // we have a ~1 px horizontal line if we don't shift y by -1, - // 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 + fullscreen_tint_gl(0,0,0, moreopaquep ? 168 : 84); } else +#endif { Bassert(!offscreenrendering);