Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
Wengier committed Aug 1, 2022
1 parent 4a90004 commit f6ddb01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2831,8 +2831,8 @@ void MenuDrawRect(int x,int y,int w,int h,Bitu color) {
glDisable(GL_SCISSOR_TEST);
glDisable(GL_STENCIL_TEST);
glDisable(GL_TEXTURE_2D);
# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX)
if (color >= 0x1000000) color/=0x100;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX)
if (color >= 0x1000000) color = ((color / 0x1000000) % 0x100) + ((color / 0x10000) % 0x100) * 0x100 + ((color / 0x100) % 0x100) * 0x10000;
#endif
glColor3ub((color >> 16UL) & 0xFF,(color >> 8UL) & 0xFF,(color >> 0UL) & 0xFF);
glBegin(GL_QUADS);
Expand Down Expand Up @@ -3157,8 +3157,8 @@ void MenuDrawText(int x,int y,const char *text,Bitu color,bool check=false) {
glMatrixMode (GL_TEXTURE);
glLoadIdentity ();
glScaled(1.0 / SDLDrawGenFontTextureWidth, 1.0 / SDLDrawGenFontTextureHeight, 1.0);
# if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX)
if (color >= 0x1000000) color/=0x100;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN && defined(MACOSX)
if (color >= 0x1000000) color = ((color / 0x1000000) % 0x100) + ((color / 0x10000) % 0x100) * 0x100 + ((color / 0x100) % 0x100) * 0x10000;
#endif
glColor4ub((color >> 16UL) & 0xFF,(color >> 8UL) & 0xFF,(color >> 0UL) & 0xFF,0xFF);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
Expand Down

0 comments on commit f6ddb01

Please sign in to comment.