diff options
author | nyamatongwe <devnull@localhost> | 2002-05-21 00:02:18 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-05-21 00:02:18 +0000 |
commit | 8af8c8dd199a2ede653de1f2baa645e66c1699ac (patch) | |
tree | 3e6624ddf5ab4b07fc06b4c99bfb23b803b567d4 | |
parent | ff0b740c49e8f1644879eb111816410246a93b78 (diff) | |
download | scintilla-mirror-8af8c8dd199a2ede653de1f2baa645e66c1699ac.tar.gz |
Changed from GetTickCount to GetMessageTime as that retieves the time the mouse was clicked rather than the current time and there may have been a delay.
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 184bfb2bc..bad4758fe 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -580,7 +580,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam // Platform::IsKeyDown(VK_SHIFT), // Platform::IsKeyDown(VK_CONTROL), // Platform::IsKeyDown(VK_MENU)); - ButtonDown(Point::FromLong(lParam), ::GetTickCount(), + ButtonDown(Point::FromLong(lParam), ::GetMessageTime(), (wParam & MK_SHIFT) != 0, (wParam & MK_CONTROL) != 0, Platform::IsKeyDown(VK_MENU)); @@ -593,7 +593,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case WM_LBUTTONUP: ButtonUp(Point::FromLong(lParam), - ::GetTickCount(), + ::GetMessageTime(), (wParam & MK_CONTROL) != 0); break; |