Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
621ab2e
)
ecere/gui/drivers/XInterface: Fixed uninitialized warnings
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 18 Jun 2015 05:13:10 +0000
(
01:13
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 15 Oct 2015 00:22:58 +0000
(20:22 -0400)
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
a5c544f
..
e40f6a6
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-1767,8
+1767,8
@@
class XInterface : Interface
static Point lastPos[3];
Modifiers keyFlags = 0;
static Point lastPos[3];
Modifiers keyFlags = 0;
- bool doubleClick;
- uint button
, buttonDouble
, whichButton;
+ bool doubleClick
= false
;
+ uint button
= 0, buttonDouble = 0
, whichButton;
uint buttonMask = 0;
int x = event->x_root, y = event->y_root;
timeStamp = event->time;
uint buttonMask = 0;
int x = event->x_root, y = event->y_root;
timeStamp = event->time;
@@
-1834,7
+1834,7
@@
class XInterface : Interface
{
window.KeyMessage(__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnKeyHit, { modifiers = keyFlags, code = (event->button == Button4) ? wheelUp : wheelDown }, 0);
}
{
window.KeyMessage(__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnKeyHit, { modifiers = keyFlags, code = (event->button == Button4) ? wheelUp : wheelDown }, 0);
}
- else
+ else
if(button)
{
if(doubleClick)
{
{
if(doubleClick)
{