forked from pool/SDL2_image
Jan Engelhardt
a97d9e87eb
- Fix undefined s on BigEndian platforms (bigendian_undefined_s.patch) OBS-URL: https://build.opensuse.org/request/show/198650 OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=8
13 lines
428 B
Diff
13 lines
428 B
Diff
Index: SDL2_image-2.0.0/IMG_webp.c
|
|
===================================================================
|
|
--- SDL2_image-2.0.0.orig/IMG_webp.c
|
|
+++ SDL2_image-2.0.0/IMG_webp.c
|
|
@@ -242,6 +242,7 @@ SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops *
|
|
Bmask = 0x00FF0000;
|
|
Amask = (features.has_alpha) ? 0xFF000000 : 0;
|
|
#else
|
|
+ int s;
|
|
s = (features.has_alpha) ? 0 : 8;
|
|
Rmask = 0xFF000000 >> s;
|
|
Gmask = 0x00FF0000 >> s;
|