From 4432b01dd8e085eabf5733435e117b3fa5f881b3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 22 Jan 2003 04:15:43 +0000 Subject: [PATCH] make hot pinking a texture hint (it makes SDL take slow code paths and makes us do conversions we oftne don't need to) --- stepmania/src/RageTexture.cpp | 2 ++ stepmania/src/RageTexture.h | 1 + 2 files changed, 3 insertions(+) diff --git a/stepmania/src/RageTexture.cpp b/stepmania/src/RageTexture.cpp index ee8812e73e..7dc00029d6 100644 --- a/stepmania/src/RageTexture.cpp +++ b/stepmania/src/RageTexture.cpp @@ -22,6 +22,7 @@ void RageTextureID::Init() bDither = false; bStretch = false; iColorDepth = TEXTUREMAN->GetTextureColorDepth(); + bHotPinkColorKey = false; } bool RageTextureID::equal(const RageTextureID &rhs) const @@ -33,6 +34,7 @@ bool RageTextureID::equal(const RageTextureID &rhs) const if(iColorDepth != rhs.iColorDepth) return false; if(bDither != rhs.bDither) return false; if(bStretch != rhs.bStretch) return false; + if(bHotPinkColorKey != rhs.bHotPinkColorKey) return false; return true; } diff --git a/stepmania/src/RageTexture.h b/stepmania/src/RageTexture.h index 7bf5e0e548..84d6254d0c 100644 --- a/stepmania/src/RageTexture.h +++ b/stepmania/src/RageTexture.h @@ -29,6 +29,7 @@ struct RageTextureID int iColorDepth; bool bDither; bool bStretch; + bool bHotPinkColorKey; /* #FF00FF */ /* Define an ordering so this can be used in a set<>. This defines a partial * ordering; use equal() to see if they're equal. */