From 4ce32a840a4cbe06dde3b59e0d02e98b6fbf4e32 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 8 Oct 2003 23:21:14 +0000 Subject: [PATCH] add alphamap hint --- stepmania/src/RageBitmapTexture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 9df4853d78..bb38623123 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -155,6 +155,10 @@ apply_color_key: * grayscale; if it only has boolean transparency, you get a 7-bit grayscale. */ if( HintString.Find("grayscale") != -1 ) actualID.iGrayscaleBits = 8-actualID.iAlphaBits; + /* This indicates that the only component in the texture is alpha; assume all + * color is white. */ + if( HintString.Find("alphamap") != -1 ) actualID.iGrayscaleBits = 0; + /* No iGrayscaleBits for images that are already paletted. We don't support * that; and that hint is intended for use on images that are already grayscale, * it's not intended to change a color image into a grayscale image. */