Skip to content

Commit

Permalink
graphics/sdl2_gpu: fix not renamed variables on big-endian which brea…
Browse files Browse the repository at this point in the history
…k build
  • Loading branch information
pkubaj committed Jun 15, 2023
1 parent f41b698 commit e9355a8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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;

0 comments on commit e9355a8

Please sign in to comment.