diff options
| author | ubkp <[email protected]> | 2023-11-27 12:34:17 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-27 16:34:17 +0100 |
| commit | c35c531551a6bf1d6b9cf41d8837231c4d942f8d (patch) | |
| tree | a53eca5e0729355efd5c421097d9603c306bb8cc /src | |
| parent | fc4b0c9aec561abdb8c8310a151090f854c29491 (diff) | |
| download | raylib-c35c531551a6bf1d6b9cf41d8837231c4d942f8d.tar.gz raylib-c35c531551a6bf1d6b9cf41d8837231c4d942f8d.zip | |
Fix SetWindowIcon() for SDL (#3578)
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 0d3b091f..58b337ff 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -499,9 +499,9 @@ void SetWindowIcon(Image image) bmask = 0x001F, amask = 0; depth = 16, pitch = image.width * 2; break; - case PIXELFORMAT_UNCOMPRESSED_R8G8B8: - rmask = 0xFF0000, gmask = 0x00FF00; - bmask = 0x0000FF, amask = 0; + case PIXELFORMAT_UNCOMPRESSED_R8G8B8: // Uses BGR for 24-bit + rmask = 0x0000FF, gmask = 0x00FF00; + bmask = 0xFF0000, amask = 0; depth = 24, pitch = image.width * 3; break; case PIXELFORMAT_UNCOMPRESSED_R5G5B5A1: |
