Skip to content

Commit

Permalink
Merge pull request #5310 from maron2000/mac_sdl2fix
Browse files Browse the repository at this point in the history
Fix color glitches in EGA, Tandy, Hercules mode on macOS SDL2 build
  • Loading branch information
joncampbell123 authored Dec 10, 2024
2 parents 2c4014a + 9494b92 commit 911c65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3101,7 +3101,7 @@ Bitu GFX_GetRGB(uint8_t red, uint8_t green, uint8_t blue) {

#if C_OPENGL
case SCREEN_OPENGL:
# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX) /* macOS Intel builds use a weird RGBA order (alpha in the low 8 bits) */
# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX) && !defined(C_SDL2) /* macOS Intel builds use a weird RGBA order (alpha in the low 8 bits) */
//USE BGRA
return (((unsigned long)blue << 24ul) | ((unsigned long)green << 16ul) | ((unsigned long)red << 8ul)) | (255ul << 0ul);
# else
Expand Down

0 comments on commit 911c65c

Please sign in to comment.