Skip to content

Commit

Permalink
Fix warnings when calculating image color
Browse files Browse the repository at this point in the history
This fixes warnings about narrowing and missing a component of the
struct.
  • Loading branch information
InfoTeddy committed Jan 10, 2024
1 parent 23915e0 commit 29f05c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop_version/src/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29f05c4

Please sign in to comment.