mirror of
https://github.com/joel16/SDL2.git
synced 2025-01-19 17:52:51 +00:00
Forgot to change window title in the normal case
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40997
This commit is contained in:
parent
56313c0fd3
commit
ef0cced667
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user