From 20937c6fa3ee98e87de296775b50560b13c6dd9e Mon Sep 17 00:00:00 2001 From: Vecais Dumais Laacis Date: Thu, 9 Aug 2007 19:03:58 +0000 Subject: [PATCH] xbox display only supports rgba8 --- stepmania/src/BannerCache.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index f8c0fd19b6..60ea16797a 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -233,9 +233,14 @@ struct BannerTexture: public RageTexture /* Find a supported texture format. If it happens to match the stored * file, we won't have to do any conversion here, and that'll happen often * with paletted images. */ +#if !defined(XBOX) PixelFormat pf = m_pImage->format->BitsPerPixel == 8? PixelFormat_PAL: PixelFormat_RGB5A1; if( !DISPLAY->SupportsTextureFormat(pf) ) pf = PixelFormat_RGBA4; +#else + // xbox display currently supports only rgba8 + PixelFormat pf = PixelFormat_RGBA8; +#endif ASSERT( DISPLAY->SupportsTextureFormat(pf) ); ASSERT(m_pImage);