Fix warnings when calculating image color

This fixes warnings about narrowing and missing a component of the
struct.
This commit is contained in:
Misa 2024-01-10 08:20:27 -08:00 committed by Misa Elizabeth Kai
parent 23915e0d22
commit 29f05c41b1
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ void Graphics::drawgui(void)
}
else
{
const SDL_Color color = {alpha, alpha, alpha};
const SDL_Color color = {(Uint8) alpha, (Uint8) alpha, (Uint8) alpha, 255};
if (flipmode)
{
drawimagecol(IMAGE_FLIPLEVELCOMPLETE, 0, 180, color, true);