[Pipmak-Devel] Two Bugs
Status: Alpha
Brought to you by:
cwalther
From: Aidan G. <wgs...@ih...> - 2008-01-21 08:07:15
|
Hello, I have (I think) fixed the bug with the mouse grabbing. If I remove the call to SDL_WM_GrabInput() that's right before the main for(;;) loop, then it seems to always be possible to get the mouse out of the window, even with edge resistance. Also, when I bring up the save game dialog with the 'S' key, Pipmak doesn't give me my mouse back, and I have to go to a virtual console and kill Pipmak. If I add a call to SDL_WM_GrabInput() to ungrab the mouse in the Lua C function which is called when the 'S' key is pressed, that seems to solve this problem. I can not be sure that I have fixed this bugs, and haven't simply masked them, nor can I be sure that I haven't broken something somewhere else. But what the heck, here are the patches with my modifications, (I also added parentheses around the tests for an if statement (you'll see where), just to suppress a complier warning. No other reason.) let me know what you think. -Aidan |