Skip to content

Commit

Permalink
Use GetTickCount() instead of GetMessageTime().
Browse files Browse the repository at this point in the history
The latter would be imprecise and depend on the VM receiving real MSG messages at the same time.
  • Loading branch information
LinqLover committed Sep 2, 2020
1 parent 959b105 commit 6ba4b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/win32/vm/sqWin32Window.c
Expand Up @@ -1269,7 +1269,7 @@ int recordDragDropEvent(HWND wnd, int dragType, int x, int y, int numFiles)
/* first the basics */
evt->type = EventTypeDragDropFiles;
// Be consistent with tagMSG.time source which is recorded for mouse events
evt->timeStamp = GetMessageTime();
evt->timeStamp = GetTickCount();
evt->dragType = dragType;
evt->x = x;
evt->y = y;
Expand Down

0 comments on commit 6ba4b12

Please sign in to comment.