diff options
author | marha <marha@users.sourceforge.net> | 2011-07-22 15:47:23 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-07-22 15:47:23 +0200 |
commit | 7e1bec71f64f17d476db9bdc19939458ec04d785 (patch) | |
tree | 09e82e18759b8ab4fa7a5cf009418fef94b1cf94 /xorg-server | |
parent | dd5e2a61d681e969c1505c9c0377f09cfbcd1817 (diff) | |
download | vcxsrv-7e1bec71f64f17d476db9bdc19939458ec04d785.tar.gz vcxsrv-7e1bec71f64f17d476db9bdc19939458ec04d785.tar.bz2 vcxsrv-7e1bec71f64f17d476db9bdc19939458ec04d785.zip |
Use logical bit and instead of arithmatic bit and
Diffstat (limited to 'xorg-server')
-rw-r--r-- | xorg-server/hw/xwin/winwndproc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xorg-server/hw/xwin/winwndproc.c b/xorg-server/hw/xwin/winwndproc.c index e1cb77508..f83717637 100644 --- a/xorg-server/hw/xwin/winwndproc.c +++ b/xorg-server/hw/xwin/winwndproc.c @@ -974,11 +974,11 @@ winWindowProc (HWND hwnd, UINT message, wShift = (GetKeyState (VK_SHIFT) & 0x8000)?MK_SHIFT:0; wCtrl = (GetKeyState (VK_CONTROL) & 0x8000)?MK_CONTROL:0; lPos = MAKELPARAM(point.x, point.y); - if (g_fButton[0] & !wL) + if (g_fButton[0] && !wL) PostMessage (hwnd, WM_LBUTTONUP, wCtrl|wM|wR|wShift, lPos); - if (g_fButton[1] & !wM) + if (g_fButton[1] && !wM) PostMessage (hwnd, WM_MBUTTONUP, wCtrl|wL|wR|wShift, lPos); - if (g_fButton[2] & !wR) + if (g_fButton[2] && !wR) PostMessage (hwnd, WM_RBUTTONUP, wCtrl|wL|wM|wShift, lPos); } } |