foxygit / doom Log in
commit b5d5725ce1a29fe00d9536873d765895624dbe60
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Oct 18 18:54:43 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Oct 18 18:54:43 2022 +0300

    video: Fix signedness issue in I_InitWindowIcon
---
 src/i_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/i_video.c b/src/i_video.c
index 581b0181..8cf0e7a5 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -906,8 +906,8 @@ void I_InitWindowIcon(void)

     surface = SDL_CreateRGBSurfaceFrom((void *) icon_data, icon_w, icon_h,
                                        32, icon_w * 4,
-                                       0xff << 24, 0xff << 16,
-                                       0xff << 8, 0xff << 0);
+                                       0xffu << 24, 0xffu << 16,
+                                       0xffu << 8, 0xffu << 0);

     SDL_SetWindowIcon(screen, surface);
     SDL_FreeSurface(surface);