mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
* 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:
parent
440de8d9b2
commit
8a96326e26
2 changed files with 9 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue