From c64d6871f60b2f52a329304e479bb2407d5ed558 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 16 Dec 2001 12:11:56 +0000 Subject: [PATCH] Replace the definition of WHEEL_DELTA which was removed in rev 1.185 [r1499]. For some reason Borland builds were working perfectly OK without it, but VC builds were failing. *shrug* [originally from svn r1500] [r1499 == d6016149bfd0fe316629ff74e32e06f42948cf87] --- window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index cbcba52f..439495af 100644 --- a/window.c +++ b/window.c @@ -67,9 +67,12 @@ #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);