- Fixed: The SDL input code must convert the event.data1 to uppercase.
- Added more resolution options when playing windowed under SDL. - Changed SDL mouse handling to be basically identical to the (non-DirectInput) Win32 code. The mouse is polled periodically and constantly warped to the center of the window. Despite what the SDL docs specify, SDL_WM_GrabInput() is apparently no longer a reliable means of obtaining continuous relative mouse motion events. - Fixed: The non-Windows implementation of I_FindClose() did not check for -1 handles. SVN r432 (trunk)
This commit is contained in:
parent
cbac8db8a5
commit
b2b28fa2f5
4 changed files with 107 additions and 40 deletions
|
|
@ -416,7 +416,7 @@ int I_FindNext (void *handle, findstate_t *fileinfo)
|
|||
int I_FindClose (void *handle)
|
||||
{
|
||||
findstate_t *state = (findstate_t *)handle;
|
||||
if (state->count > 0)
|
||||
if (handle != (void*)-1 && state->count > 0)
|
||||
{
|
||||
state->count = 0;
|
||||
free (state->namelist);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue