git: e9355a8a6eb7 - main - graphics/sdl2_gpu: fix not renamed variables on big-endian which break build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Jun 2023 09:40:29 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e9355a8a6eb7c0881866185992419f3271ff0e7f
commit e9355a8a6eb7c0881866185992419f3271ff0e7f
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-06-15 09:38:08 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-06-15 09:38:54 +0000
graphics/sdl2_gpu: fix not renamed variables on big-endian which break build
---
graphics/sdl2_gpu/files/patch-src_SDL__gpu.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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;