mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-03 15:55:30 +03:00
Fix warnings when calculating image color
This fixes warnings about narrowing and missing a component of the struct.
This commit is contained in:
@@ -1004,7 +1004,7 @@ void Graphics::drawgui(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const SDL_Color color = {alpha, alpha, alpha};
|
const SDL_Color color = {(Uint8) alpha, (Uint8) alpha, (Uint8) alpha, 255};
|
||||||
if (flipmode)
|
if (flipmode)
|
||||||
{
|
{
|
||||||
drawimagecol(IMAGE_FLIPLEVELCOMPLETE, 0, 180, color, true);
|
drawimagecol(IMAGE_FLIPLEVELCOMPLETE, 0, 180, color, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user