diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 598fb23c6a..f18139c334 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -453,7 +453,7 @@ void RageDisplay::SaveScreenshot( CString sPath ) for( int y=0; ypixels + 3 * g_CurrentWidth * y, - (char *)image->pixels + 3 * g_CurrentWidth * (g_CurrentHeight-y), + (char *)image->pixels + 3 * g_CurrentWidth * (g_CurrentHeight-1-y), 3*g_CurrentWidth ); SDL_SaveBMP( temp, sPath ); diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 050ab777b8..96df78eaf9 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -94,10 +94,12 @@ void ApplyGraphicOptions() PREFSMAN->m_iRefreshRate, PREFSMAN->m_bVsync ); - if(TEXTUREMAN->SetPrefs( PREFSMAN->m_iTextureColorDepth, PREFSMAN->m_iUnloadTextureDelaySeconds, PREFSMAN->m_iMaxTextureResolution )) - ReloadTextures = true; + bool bTexturesInvalidated = TEXTUREMAN->SetPrefs( + PREFSMAN->m_iTextureColorDepth, + PREFSMAN->m_iUnloadTextureDelaySeconds, + PREFSMAN->m_iMaxTextureResolution ); - if(ReloadTextures) + if( bTexturesInvalidated ) TEXTUREMAN->ReloadAll(); }