Fix SetWindowIcon() for SDL (#3578)

This commit is contained in:
ubkp 2023-11-27 12:34:17 -03:00 committed by GitHub
parent fc4b0c9aec
commit c35c531551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -499,9 +499,9 @@ void SetWindowIcon(Image image)
bmask = 0x001F, amask = 0; bmask = 0x001F, amask = 0;
depth = 16, pitch = image.width * 2; depth = 16, pitch = image.width * 2;
break; break;
case PIXELFORMAT_UNCOMPRESSED_R8G8B8: case PIXELFORMAT_UNCOMPRESSED_R8G8B8: // Uses BGR for 24-bit
rmask = 0xFF0000, gmask = 0x00FF00; rmask = 0x0000FF, gmask = 0x00FF00;
bmask = 0x0000FF, amask = 0; bmask = 0xFF0000, amask = 0;
depth = 24, pitch = image.width * 3; depth = 24, pitch = image.width * 3;
break; break;
case PIXELFORMAT_UNCOMPRESSED_R5G5B5A1: case PIXELFORMAT_UNCOMPRESSED_R5G5B5A1: