fixed screenshot causing crash in some resolutions
This commit is contained in:
@@ -453,7 +453,7 @@ void RageDisplay::SaveScreenshot( CString sPath )
|
||||
for( int y=0; y<g_CurrentHeight; y++ )
|
||||
memcpy(
|
||||
(char *)temp->pixels + 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 );
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user