Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Forgot to change window title in the normal case
  • Loading branch information
pmandin committed Nov 30, 2004
1 parent 638169b commit 3acdc74
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/video/gem/SDL_gemevents.c
Expand Up @@ -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)
Expand Down

0 comments on commit 3acdc74

Please sign in to comment.