src/video/gem/SDL_gemevents.c
changeset 996 54bb19455081
parent 964 d9209754ebee
child 1065 5d9947da7510
     1.1 --- a/src/video/gem/SDL_gemevents.c	Sun Nov 28 21:52:29 2004 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Tue Nov 30 13:04:22 2004 +0000
     1.3 @@ -188,6 +188,22 @@
     1.4  	}
     1.5  
     1.6  	memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard));
     1.7 +
     1.8 +	/* Refresh window name ? */
     1.9 +	if (GEM_refresh_name) {
    1.10 +		if ( SDL_GetAppState() & SDL_APPACTIVE ) {
    1.11 +			/* Fullscreen/windowed */
    1.12 +			if (GEM_title_name) {
    1.13 +				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0);
    1.14 +			}
    1.15 +		} else {
    1.16 +			/* Iconified */
    1.17 +			if (GEM_icon_name) {
    1.18 +				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0);
    1.19 +			}
    1.20 +		}
    1.21 +		GEM_refresh_name = SDL_FALSE;
    1.22 +	}
    1.23  }
    1.24  
    1.25  static int do_messages(_THIS, short *message)