aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-15 09:38:08 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-06-15 09:38:54 +0000
commite9355a8a6eb7c0881866185992419f3271ff0e7f (patch)
tree3bb77fc707f99cf8065ccb4b8bae8db89cac6aa1
parentf41b6980ac911c69f00bf075ab80ea05cbffcab4 (diff)
downloadports-e9355a8a6eb7c0881866185992419f3271ff0e7f.tar.gz
ports-e9355a8a6eb7c0881866185992419f3271ff0e7f.zip
graphics/sdl2_gpu: fix not renamed variables on big-endian which break build
-rw-r--r--graphics/sdl2_gpu/files/patch-src_SDL__gpu.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/sdl2_gpu/files/patch-src_SDL__gpu.c b/graphics/sdl2_gpu/files/patch-src_SDL__gpu.c
new file mode 100644
index 000000000000..e3eebc5989a0
--- /dev/null
+++ b/graphics/sdl2_gpu/files/patch-src_SDL__gpu.c
@@ -0,0 +1,17 @@
+--- src/SDL_gpu.c.orig 2023-06-15 09:35:37 UTC
++++ src/SDL_gpu.c
+@@ -1090,10 +1090,10 @@ static SDL_Surface* gpu_copy_raw_surface_data(unsigned
+ break;
+ case 4:
+ #if SDL_BYTEORDER == SDL_BIG_ENDIAN
+- rmask = 0xff000000;
+- gmask = 0x00ff0000;
+- bmask = 0x0000ff00;
+- amask = 0x000000ff;
++ Rmask = 0xff000000;
++ Gmask = 0x00ff0000;
++ Bmask = 0x0000ff00;
++ Amask = 0x000000ff;
+ #else
+ Rmask = 0x000000ff;
+ Gmask = 0x0000ff00;