diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 6270f45a8d..984c2f3d1b 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -972,7 +972,7 @@ unsigned RageDisplay_D3D::CreateTexture( pal.p[i].peGreen = c.g; pal.p[i].peBlue = c.b; bool bIsColorKey = img->flags & SDL_SRCCOLORKEY && (unsigned)i == img->format->colorkey; - pal.p[i].peFlags = bIsColorKey ? 0x00 : 0xFF; + pal.p[i].peFlags = bIsColorKey ? BYTE(0x00) : c.unused; } ASSERT( g_TexResourceToTexturePalette.find(uTexHandle) == g_TexResourceToTexturePalette.end() ); diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index ca45a3694c..e0309d40a2 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1127,7 +1127,7 @@ unsigned RageDisplay_OGL::CreateTexture( if(img->flags & SDL_SRCCOLORKEY && i == int(img->format->colorkey)) palette[p++] = 0; else - palette[p++] = 0xFF; /* opaque */ + palette[p++] = img->format->palette->colors[i].unused; } /* Set the palette. */