src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 4059 57b017e6aebf
parent 3861 c3625a895caf
child 4060 0b4ebec67cad
     1.1 --- a/src/video/gem/SDL_gemevents.c	Fri Jul 13 03:57:40 2007 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Fri Jul 13 16:09:16 2007 +0000
     1.3 @@ -167,16 +167,14 @@
     1.4  
     1.5  	/* Refresh window name ? */
     1.6  	if (GEM_refresh_name) {
     1.7 -		if ( SDL_GetAppState() & SDL_APPACTIVE ) {
     1.8 -			/* Fullscreen/windowed */
     1.9 -			if (GEM_title_name) {
    1.10 -				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0);
    1.11 -			}
    1.12 -		} else {
    1.13 -			/* Iconified */
    1.14 -			if (GEM_icon_name) {
    1.15 -				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0);
    1.16 -			}
    1.17 +		const char *window_name =
    1.18 +			(SDL_GetAppState() & SDL_APPACTIVE)
    1.19 +			? GEM_title_name : GEM_icon_name;
    1.20 +		if (window_name) {
    1.21 +			wind_set(GEM_handle,WF_NAME,
    1.22 +				(short)(((unsigned long)window_name)>>16),
    1.23 +				(short)(((unsigned long)window_name) & 0xffff),
    1.24 +				0,0);
    1.25  		}
    1.26  		GEM_refresh_name = SDL_FALSE;
    1.27  	}