From: Willem J. P. <pal...@pl...> - 2003-09-25 19:07:22
|
On Thu, 2003-09-25 at 20:46, Aurelien Marchand wrote: > After some investigation, it appears the zaurus is running low on > memory and produce a popup informing you so, but since exult is > fullscreen, and since the popup doesn't check if an app is already > running, exult loses focus but does not ungrab the mouse so you can't > click back on the app to give it back focus. The game still runs (the > waves move and the palette rotates IIRC) but it's unplayable. > > So, I was testing with SDL_WM_IconifyWindow(), and more especially > calling it right after "tqueue->pause(Game::get_ticks());" in > gamewin.cc's void Game_window::lose_focus(). > > It seems to work on my normal desktop, whether I am fullscreen or not. > > My question is: what do you guys think about it? It is at the right > place? Do you want me to enclose that piece of code in #if > defined(__zaurus__) ? Do you think there is a better way? Sure, sounds like a good idea. lose_focus() seems like the natural place to put it. I do think it should be Zaurus-only, though. Arguably it could be done whenever you lose focus while fullscreen, but I'm not sure about that. -Willem Jan |