From fd072a7da5f87eabc18bf32e8ecc26f2cd15bfa1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 30 Dec 2005 01:15:37 +0000 Subject: [PATCH] FAIL for "impossible" cases where we want a trace; not Throw --- stepmania/src/RageBitmapTexture.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index d0f2022398..8a63c2cc63 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -3,15 +3,14 @@ #include "RageUtil.h" #include "RageLog.h" #include "RageTextureManager.h" -#include "RageException.h" #include "RageDisplay.h" #include "RageTypes.h" -#include "arch/Dialog/Dialog.h" #include "RageSurface.h" #include "RageSurfaceUtils.h" #include "RageSurfaceUtils_Zoom.h" #include "RageSurfaceUtils_Dither.h" #include "RageSurface_Load.h" +#include "arch/Dialog/Dialog.h" static void GetResolutionFromFileName( CString sPath, int &iWidth, int &iHeight ) { @@ -197,8 +196,7 @@ void RageBitmapTexture::Create() case 32: pixfmt = PixelFormat_RGBA8; break; - default: - RageException::Throw( "Invalid color depth: %d bits", actualID.iColorDepth ); + default: FAIL_M( ssprintf("%i", actualID.iColorDepth) ); } }