src/video/gem/SDL_gemevents.c
changeset 2186 6fe43f7efd94
parent 2043 adf732f1f016
child 2189 f54670a477bb
     1.1 --- a/src/video/gem/SDL_gemevents.c	Thu Jul 12 20:00:50 2007 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Fri Jul 13 16:11:58 2007 +0000
     1.3 @@ -156,24 +156,12 @@
     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,
    1.11 -                         (short) (((unsigned long) GEM_title_name) >>
    1.12 -                                  16),
    1.13 -                         (short) (((unsigned long) GEM_title_name) &
    1.14 -                                  0xffff), 0, 0);
    1.15 -            }
    1.16 -        } else {
    1.17 -            /* Iconified */
    1.18 -            if (GEM_icon_name) {
    1.19 -                wind_set(GEM_handle, WF_NAME,
    1.20 -                         (short) (((unsigned long) GEM_icon_name) >>
    1.21 -                                  16),
    1.22 -                         (short) (((unsigned long) GEM_icon_name) &
    1.23 -                                  0xffff), 0, 0);
    1.24 -            }
    1.25 +        const char *window_name = (SDL_GetAppState() & SDL_APPACTIVE) ?
    1.26 +            GEM_title_name : GEM_icon_name;
    1.27 +        if (window_name) {
    1.28 +            wind_set(GEM_handle, WF_NAME,
    1.29 +                     (short) (((unsigned long) window_name) >> 16),
    1.30 +                     (short) (((unsigned long) window_name) & 0xffff), 0, 0);
    1.31          }
    1.32          GEM_refresh_name = SDL_FALSE;
    1.33      }