Skip to content
This repository
Browse code

[win32] add defines for GID_ROTATE_ANGLE_TO_ARGUMENT and GID_ROTATE_A…

…NGLE_FROM_ARGUMENT
  • Loading branch information...
commit 7cb5e1a3dcd645770197763c24aeab2994bce553 1 parent 84cdb08
Sascha Montellese authored February 22, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  xbmc/windowing/windows/WinSystemWin32.h
3  xbmc/windowing/windows/WinSystemWin32.h
@@ -115,6 +115,9 @@ typedef struct tagGESTURENOTIFYSTRUCT {
115 115
     DWORD dwInstanceID;             // internally used
116 116
 } GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT;
117 117
 
  118
+#define GID_ROTATE_ANGLE_TO_ARGUMENT(_arg_)     ((USHORT)((((_arg_) + 2.0 * 3.14159265) / (4.0 * 3.14159265)) * 65535.0))
  119
+#define GID_ROTATE_ANGLE_FROM_ARGUMENT(_arg_)   ((((double)(_arg_) / 65535.0) * 4.0 * 3.14159265) - 2.0 * 3.14159265)
  120
+
118 121
 DECLARE_HANDLE(HGESTUREINFO);
119 122
 
120 123
 #endif

0 notes on commit 7cb5e1a

Please sign in to comment.
Something went wrong with that request. Please try again.