Skip to content

Commit 29f05c4

Browse files
committed
Fix warnings when calculating image color
This fixes warnings about narrowing and missing a component of the struct.
1 parent 23915e0 commit 29f05c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

desktop_version/src/Graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ void Graphics::drawgui(void)
10041004
}
10051005
else
10061006
{
1007-
const SDL_Color color = {alpha, alpha, alpha};
1007+
const SDL_Color color = {(Uint8) alpha, (Uint8) alpha, (Uint8) alpha, 255};
10081008
if (flipmode)
10091009
{
10101010
drawimagecol(IMAGE_FLIPLEVELCOMPLETE, 0, 180, color, true);

0 commit comments

Comments
 (0)