Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set graphics settings while playing a movie in UpdateActiveConfig(), …
…so settings can't be changed for a frame.
  • Loading branch information
RachelBryk committed May 21, 2013
1 parent 86b4a87 commit 10d1d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Source/Core/Core/Src/Movie.cpp
Expand Up @@ -126,11 +126,6 @@ void FrameUpdate()
g_totalFrames = g_currentFrame;
g_totalLagCount = g_currentLagCount;
}
if (IsPlayingInput() && IsConfigSaved())
{
SetGraphicsConfig();
}

if (g_bFrameStep)
{
Core::SetState(Core::CORE_PAUSE);
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/VideoCommon/Src/VideoConfig.cpp
Expand Up @@ -10,12 +10,15 @@
#include "VideoCommon.h"
#include "FileUtil.h"
#include "Core.h"
#include "Movie.h"

VideoConfig g_Config;
VideoConfig g_ActiveConfig;

void UpdateActiveConfig()
{
if (Movie::IsPlayingInput() && Movie::IsConfigSaved())
Movie::SetGraphicsConfig();
g_ActiveConfig = g_Config;
}

Expand Down

0 comments on commit 10d1d19

Please sign in to comment.