Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce65c40
)
ecere/gui/XInterface: Fixed check for closing Joystick handles
author
jerome
<jerome@quantal.(none)>
Tue, 29 Jan 2013 12:27:24 +0000
(07:27 -0500)
committer
jerome
<jerome@quantal.(none)>
Tue, 29 Jan 2013 12:27:24 +0000
(07:27 -0500)
ecere/src/gui/drivers/XInterface.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/drivers/XInterface.ec
b/ecere/src/gui/drivers/XInterface.ec
index
2b24840
..
5f9ea95
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-1240,10
+1240,10
@@
class XInterface : Interface
XCloseDisplay(xGlobalDisplay);
xGlobalDisplay = null;
- if(joystickFD[0]) close(joystickFD[0]);
- if(joystickFD[1]) close(joystickFD[1]);
- if(joystickFD[2]) close(joystickFD[2]);
- if(joystickFD[3]) close(joystickFD[3]);
+ if(joystickFD[0]
!= -1
) close(joystickFD[0]);
+ if(joystickFD[1]
!= -1
) close(joystickFD[1]);
+ if(joystickFD[2]
!= -1
) close(joystickFD[2]);
+ if(joystickFD[3]
!= -1
) close(joystickFD[3]);
}
#define DBLCLICK_DELAY 300 // 0.3 second