Fixed small transition bug
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@76 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -324,12 +324,12 @@ TFB_FlushGraphics () // Only call from main thread!!
|
||||
if (DrawCommandQueue == 0 || DrawCommandQueue->Size == 0)
|
||||
{
|
||||
static int last_fade = 255;
|
||||
static int last_transition = -1;
|
||||
static int last_transition = 255;
|
||||
int current_fade = FadeAmount;
|
||||
int current_transition = TransitionAmount;
|
||||
|
||||
if ((current_fade != 255 && current_fade != last_fade) ||
|
||||
(current_transition != -1 && current_transition != last_transition))
|
||||
(current_transition != 255 && current_transition != last_transition))
|
||||
{
|
||||
TFB_SwapBuffers(); // if fading, redraw every frame
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user