Replace the definition of WHEEL_DELTA which was removed in rev 1.185
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 16 Dec 2001 12:11:56 +0000 (12:11 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 16 Dec 2001 12:11:56 +0000 (12:11 +0000)
[r1499]. For some reason Borland builds were working perfectly OK
without it, but VC builds were failing. *shrug*

git-svn-id: svn://svn.tartarus.org/sgt/putty@1500 cda61777-01e9-0310-a592-d414129be87e

window.c

index cbcba52..439495a 100644 (file)
--- a/window.c
+++ b/window.c
 #define VK_PROCESSKEY 0xE5
 #endif
 
-/* Needed for mouse wheel support and not defined in earlier SDKs. */
+/* Mouse wheel support. */
 #ifndef WM_MOUSEWHEEL
-#define WM_MOUSEWHEEL 0x020A
+#define WM_MOUSEWHEEL 0x020A          /* not defined in earlier SDKs */
+#endif
+#ifndef WHEEL_DELTA
+#define WHEEL_DELTA 120
 #endif
 
 static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);