diff options
author | montellese <montellese@xbmc.org> | 2013-02-22 14:31:08 +0100 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2013-04-04 23:51:23 +0200 |
commit | 7cb5e1a3dcd645770197763c24aeab2994bce553 (patch) | |
tree | 81d7489a705ca58b99fdc650e9ee2b243f2bf143 | |
parent | 84cdb08feb2e822ee5b1f210a900ae202010b4bb (diff) |
[win32] add defines for GID_ROTATE_ANGLE_TO_ARGUMENT and GID_ROTATE_ANGLE_FROM_ARGUMENT
-rw-r--r-- | xbmc/windowing/windows/WinSystemWin32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/windowing/windows/WinSystemWin32.h b/xbmc/windowing/windows/WinSystemWin32.h index ff33da3a8f..8f25d93021 100644 --- a/xbmc/windowing/windows/WinSystemWin32.h +++ b/xbmc/windowing/windows/WinSystemWin32.h @@ -115,6 +115,9 @@ typedef struct tagGESTURENOTIFYSTRUCT { DWORD dwInstanceID; // internally used } GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT; +#define GID_ROTATE_ANGLE_TO_ARGUMENT(_arg_) ((USHORT)((((_arg_) + 2.0 * 3.14159265) / (4.0 * 3.14159265)) * 65535.0)) +#define GID_ROTATE_ANGLE_FROM_ARGUMENT(_arg_) ((((double)(_arg_) / 65535.0) * 4.0 * 3.14159265) - 2.0 * 3.14159265) + DECLARE_HANDLE(HGESTUREINFO); #endif |