* Source/win32/WIN32Server.m:

Fix accidental integer division intended to be float division when
setting the timestamp on events. This was causing all timestamps
to be rounded to the nearest second.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-07-26 01:55:24 +00:00
parent 440de8d9b2
commit 8a96326e26
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2010-07-25 Eric Wasylishen <ewasylishen@gmail.com>
* Source/win32/WIN32Server.m:
Fix accidental integer division intended to be float division when
setting the timestamp on events. This was causing all timestamps
to be rounded to the nearest second.
2010-07-25 Eric Wasylishen <ewasylishen@gmail.com>
* Source/win32/w32_GLContext.m:

View file

@ -1772,7 +1772,7 @@ process_key_event(WIN32Server *svr, HWND hwnd, WPARAM wParam, LPARAM lParam,
= MSWindowPointToGS(svr, hwnd, GET_X_LPARAM(pos), GET_Y_LPARAM(pos));
ltime = GetMessageTime();
time = ltime / 1000;
time = ltime / 1000.0f;
GetKeyboardState(keyState);
eventFlags = mask_for_keystate(keyState);
@ -1912,7 +1912,7 @@ process_mouse_event(WIN32Server *svr, HWND hwnd, WPARAM wParam, LPARAM lParam,
eventLocation = MSWindowPointToGS(svr, hwnd, clientX, clientY);
ltime = GetMessageTime();
time = ltime / 1000;
time = ltime / 1000.0f;
tick = GetTickCount();
eventFlags = 0;
if (wParam & MK_CONTROL)