diff --git a/src/RageDisplay.cpp b/src/RageDisplay.cpp index 1c55f28079..071a7faad4 100644 --- a/src/RageDisplay.cpp +++ b/src/RageDisplay.cpp @@ -769,10 +769,8 @@ void RageDisplay::UpdateCentering() bool RageDisplay::SaveScreenshot( const RString &sPath, GraphicsFileFormat format ) { - RageTimer timer; RageSurface *surface = this->CreateScreenshot(); -// LOG->Trace( "CreateScreenshot took %f seconds", timer.GetDeltaTime() ); - + if (nullptr == surface) { LOG->Warn("SaveScreenshot: failed to create a screenshot surface"); @@ -790,9 +788,7 @@ bool RageDisplay::SaveScreenshot( const RString &sPath, GraphicsFileFormat forma // This used to be lrint. However, lrint causes odd resolutions like // 639x480 (4:3) and 853x480 (16:9). ceil gives correct values. -aj int iWidth = std::ceil( iHeight * GetActualVideoModeParams().fDisplayAspectRatio ); - timer.Touch(); RageSurfaceUtils::Zoom( surface, iWidth, iHeight ); -// LOG->Trace( "%ix%i -> %ix%i (%.3f) in %f seconds", surface->w, surface->h, iWidth, iHeight, GetActualVideoModeParams().fDisplayAspectRatio, timer.GetDeltaTime() ); } RageFile out; @@ -804,7 +800,6 @@ bool RageDisplay::SaveScreenshot( const RString &sPath, GraphicsFileFormat forma } bool bSuccess = false; - timer.Touch(); RString strError = ""; switch( format ) { @@ -825,7 +820,6 @@ bool RageDisplay::SaveScreenshot( const RString &sPath, GraphicsFileFormat forma bSuccess = false; break; } -// LOG->Trace( "Saving Screenshot file took %f seconds.", timer.GetDeltaTime() ); RageUtil::SafeDelete( surface );