Skip to content

Commit

Permalink
Use bundle icon on Mac OS X instead of internal 32x32 window icon
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Oct 19, 2013
1 parent 983ebbb commit 8c1d3c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/sdl/sdl_glimp.c
Expand Up @@ -207,6 +207,7 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
if ( r_allowResize->integer )
flags |= SDL_WINDOW_RESIZABLE;

#ifdef USE_ICON
icon = SDL_CreateRGBSurfaceFrom(
(void *)CLIENT_WINDOW_ICON.pixel_data,
CLIENT_WINDOW_ICON.width,
Expand All @@ -219,6 +220,7 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF
#endif
);
#endif

// If a window exists, note its display index
if( SDL_window != NULL )
Expand Down

0 comments on commit 8c1d3c6

Please sign in to comment.