From 8d24f61214b0d572305b2f60b0f5f63978ebe5d6 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Tue, 7 May 2024 03:17:18 -0700 Subject: [PATCH] Don't warn user if frame size is not a multiple of 2 Disable this common nag warning + log file warning combination. --- src/RageBitmapTexture.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/RageBitmapTexture.cpp b/src/RageBitmapTexture.cpp index bc6d894c84..281cf165bd 100644 --- a/src/RageBitmapTexture.cpp +++ b/src/RageBitmapTexture.cpp @@ -310,21 +310,6 @@ void RageBitmapTexture::Create() float fBetterFrameHeight = std::ceil(fFrameHeight/iDimensionMultiple) * iDimensionMultiple; float fBetterSourceWidth = this->GetFramesWide() * fBetterFrameWidth; float fBetterSourceHeight = this->GetFramesHigh() * fBetterFrameHeight; - if( fFrameWidth!=fBetterFrameWidth || fFrameHeight!=fBetterFrameHeight ) - { - RString sWarning = ssprintf( - "The graphic '%s' has frame dimensions that aren't a multiple of %d.\n" - "The entire image is %dx%d and frame size is %.1fx%.1f.\n" - "Image quality will be much improved if you resize the graphic to %.0fx%.0f, which is a frame size of %.0fx%.0f.", - actualID.filename.c_str(), - iDimensionMultiple, - this->GetSourceWidth(), this->GetSourceHeight(), - fFrameWidth, fFrameHeight, - fBetterSourceWidth, fBetterSourceHeight, - fBetterFrameWidth, fBetterFrameHeight ); - LOG->Warn( "%s", sWarning.c_str() ); - Dialog::OK( sWarning, "FRAME_DIMENSIONS_WARNING" ); - } } }