fixed screenshot causing crash in some resolutions

This commit is contained in:
Chris Danford
2003-02-02 02:01:28 +00:00
parent 1c4c24eeea
commit 3f537d1586
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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 );