From 3acdc74199739160df81559c1e2048d605505f36 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Tue, 30 Nov 2004 13:04:22 +0000 Subject: [PATCH] Forgot to change window title in the normal case --- src/video/gem/SDL_gemevents.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/video/gem/SDL_gemevents.c b/src/video/gem/SDL_gemevents.c index 3b50b66d8..d41becc79 100644 --- a/src/video/gem/SDL_gemevents.c +++ b/src/video/gem/SDL_gemevents.c @@ -188,6 +188,22 @@ void GEM_PumpEvents(_THIS) } memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); + + /* Refresh window name ? */ + if (GEM_refresh_name) { + if ( SDL_GetAppState() & SDL_APPACTIVE ) { + /* Fullscreen/windowed */ + if (GEM_title_name) { + wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0); + } + } else { + /* Iconified */ + if (GEM_icon_name) { + wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0); + } + } + GEM_refresh_name = SDL_FALSE; + } } static int do_messages(_THIS, short *message)