|
From: <cn...@us...> - 2009-08-23 06:04:23
|
Revision: 518
http://hgengine.svn.sourceforge.net/hgengine/?rev=518&view=rev
Author: cnlohr
Date: 2009-08-23 06:04:16 +0000 (Sun, 23 Aug 2009)
Log Message:
-----------
fix warnings
Modified Paths:
--------------
Mercury2/src/X11Window.cpp
Modified: Mercury2/src/X11Window.cpp
===================================================================
--- Mercury2/src/X11Window.cpp 2009-08-23 06:03:15 UTC (rev 517)
+++ Mercury2/src/X11Window.cpp 2009-08-23 06:04:16 UTC (rev 518)
@@ -280,11 +280,11 @@
{
XButtonEvent* e = (XButtonEvent*)&event;
uint8_t left, right, center, su, sd;
- left = (e->state & X11_MASK(MOUSE_BTN_LEFT))!=0 ^ (e->button == MOUSE_BTN_LEFT);
- right = (e->state & X11_MASK(MOUSE_BTN_RIGHT))!=0 ^ (e->button == MOUSE_BTN_RIGHT);
- center = (e->state & X11_MASK(MOUSE_BTN_CENTER))!=0 ^ (e->button == MOUSE_BTN_CENTER);
- su = (e->state & X11_MASK(MOUSE_BTN_SCROLL_UP))!=0 ^ (e->button == MOUSE_BTN_SCROLL_UP);
- sd = (e->state & X11_MASK(MOUSE_BTN_SCROLL_DOWN))!=0 ^ (e->button == MOUSE_BTN_SCROLL_DOWN);
+ left = ((e->state & X11_MASK(MOUSE_BTN_LEFT))!=0) ^ (e->button == MOUSE_BTN_LEFT);
+ right = ((e->state & X11_MASK(MOUSE_BTN_RIGHT))!=0) ^ (e->button == MOUSE_BTN_RIGHT);
+ center = ((e->state & X11_MASK(MOUSE_BTN_CENTER))!=0) ^ (e->button == MOUSE_BTN_CENTER);
+ su = ((e->state & X11_MASK(MOUSE_BTN_SCROLL_UP))!=0) ^ (e->button == MOUSE_BTN_SCROLL_UP);
+ sd = ((e->state & X11_MASK(MOUSE_BTN_SCROLL_DOWN))!=0) ^ (e->button == MOUSE_BTN_SCROLL_DOWN);
MouseInput::ProcessMouseInput(e->x, e->y,
left, right, center, su, sd);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|