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++ )
|
for( int y=0; y<g_CurrentHeight; y++ )
|
||||||
memcpy(
|
memcpy(
|
||||||
(char *)temp->pixels + 3 * g_CurrentWidth * y,
|
(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 );
|
3*g_CurrentWidth );
|
||||||
|
|
||||||
SDL_SaveBMP( temp, sPath );
|
SDL_SaveBMP( temp, sPath );
|
||||||
|
|||||||
@@ -94,10 +94,12 @@ void ApplyGraphicOptions()
|
|||||||
PREFSMAN->m_iRefreshRate,
|
PREFSMAN->m_iRefreshRate,
|
||||||
PREFSMAN->m_bVsync );
|
PREFSMAN->m_bVsync );
|
||||||
|
|
||||||
if(TEXTUREMAN->SetPrefs( PREFSMAN->m_iTextureColorDepth, PREFSMAN->m_iUnloadTextureDelaySeconds, PREFSMAN->m_iMaxTextureResolution ))
|
bool bTexturesInvalidated = TEXTUREMAN->SetPrefs(
|
||||||
ReloadTextures = true;
|
PREFSMAN->m_iTextureColorDepth,
|
||||||
|
PREFSMAN->m_iUnloadTextureDelaySeconds,
|
||||||
|
PREFSMAN->m_iMaxTextureResolution );
|
||||||
|
|
||||||
if(ReloadTextures)
|
if( bTexturesInvalidated )
|
||||||
TEXTUREMAN->ReloadAll();
|
TEXTUREMAN->ReloadAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user