comparison src/SDL_compat.c @ 2058:38148947fdcf

Fixed focus comptability bug
author Sam Lantinga <slouken@libsdl.org>
date Sat, 28 Oct 2006 16:41:08 +0000
parents 6bb97f41ab4b
children 047245361002
comparison
equal deleted inserted replaced
2057:c2fed8bb6700 2058:38148947fdcf
210 fake.active.state = SDL_APPINPUTFOCUS; 210 fake.active.state = SDL_APPINPUTFOCUS;
211 SDL_PushEvent(&fake); 211 SDL_PushEvent(&fake);
212 break; 212 break;
213 case SDL_WINDOWEVENT_FOCUS_LOST: 213 case SDL_WINDOWEVENT_FOCUS_LOST:
214 fake.type = SDL_ACTIVEEVENT; 214 fake.type = SDL_ACTIVEEVENT;
215 fake.active.gain = 1; 215 fake.active.gain = 0;
216 fake.active.state = SDL_APPINPUTFOCUS; 216 fake.active.state = SDL_APPINPUTFOCUS;
217 SDL_PushEvent(&fake); 217 SDL_PushEvent(&fake);
218 break; 218 break;
219 case SDL_WINDOWEVENT_CLOSE: 219 case SDL_WINDOWEVENT_CLOSE:
220 fake.type = SDL_QUIT; 220 fake.type = SDL_QUIT;