forked from pool/SDL2_image
Add metadata to patch
OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=9
This commit is contained in:
parent
a97d9e87eb
commit
5869c60b71
@ -1,3 +1,13 @@
|
|||||||
|
From: Dinar Valeev <dvaleev@suse.com>
|
||||||
|
Date: Thu, 12 Sep 2013 12:51:31 +0200
|
||||||
|
|
||||||
|
build: resolve compile abort on big-endian platforms
|
||||||
|
|
||||||
|
s was not declared.
|
||||||
|
|
||||||
|
Addition by jengelh: Make it unsigned, because that is the
|
||||||
|
only thing to make sense with the >> operator.
|
||||||
|
|
||||||
Index: SDL2_image-2.0.0/IMG_webp.c
|
Index: SDL2_image-2.0.0/IMG_webp.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- SDL2_image-2.0.0.orig/IMG_webp.c
|
--- SDL2_image-2.0.0.orig/IMG_webp.c
|
||||||
@ -6,7 +16,7 @@ Index: SDL2_image-2.0.0/IMG_webp.c
|
|||||||
Bmask = 0x00FF0000;
|
Bmask = 0x00FF0000;
|
||||||
Amask = (features.has_alpha) ? 0xFF000000 : 0;
|
Amask = (features.has_alpha) ? 0xFF000000 : 0;
|
||||||
#else
|
#else
|
||||||
+ int s;
|
+ unsigned int s;
|
||||||
s = (features.has_alpha) ? 0 : 8;
|
s = (features.has_alpha) ? 0 : 8;
|
||||||
Rmask = 0xFF000000 >> s;
|
Rmask = 0xFF000000 >> s;
|
||||||
Gmask = 0x00FF0000 >> s;
|
Gmask = 0x00FF0000 >> s;
|
||||||
|
Loading…
Reference in New Issue
Block a user