Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.c @ 996:54bb19455081
Forgot to change window title in the normal case
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Tue, 30 Nov 2004 13:04:22 +0000 |
parents | d9209754ebee |
children | 5d9947da7510 |
comparison
equal
deleted
inserted
replaced
995:22fc5f45bbb7 | 996:54bb19455081 |
---|---|
186 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) | 186 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) |
187 SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, gem_currentascii[i], &keysym)); | 187 SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, gem_currentascii[i], &keysym)); |
188 } | 188 } |
189 | 189 |
190 memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); | 190 memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); |
191 | |
192 /* Refresh window name ? */ | |
193 if (GEM_refresh_name) { | |
194 if ( SDL_GetAppState() & SDL_APPACTIVE ) { | |
195 /* Fullscreen/windowed */ | |
196 if (GEM_title_name) { | |
197 wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0); | |
198 } | |
199 } else { | |
200 /* Iconified */ | |
201 if (GEM_icon_name) { | |
202 wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0); | |
203 } | |
204 } | |
205 GEM_refresh_name = SDL_FALSE; | |
206 } | |
191 } | 207 } |
192 | 208 |
193 static int do_messages(_THIS, short *message) | 209 static int do_messages(_THIS, short *message) |
194 { | 210 { |
195 int quit, posted; | 211 int quit, posted; |