From 8af8c8dd199a2ede653de1f2baa645e66c1699ac Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 21 May 2002 00:02:18 +0000 Subject: 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. --- win32/ScintillaWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') 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; -- cgit v1.2.3