diff options
-rw-r--r-- | mousew16.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -18,7 +18,6 @@ */ #include <string.h> -#include <limits.h> #include <windows.h> #include "utils.h" @@ -164,7 +163,7 @@ static void post_scroll_msg(HWND hWnd, BOOL vertical, int z, HWND hScrollBar) UINT i, lines = (z < 0 ? -z : z) * WHEEL_SCROLL_LINES; #if TRACE_WHEEL - dprintf("w16mouse: sending scroll msg to hWnd=0x%x from=0x%x vert=%d lines=%u\n", hWnd, hScrollBar, vertical, lines); + dprintf(DPREFIX "sending scroll msg to hWnd=0x%x from=0x%x vert=%d lines=%u\n", hWnd, hScrollBar, vertical, lines); #endif for (i = 0; i < lines; i++) { @@ -180,7 +179,7 @@ static void send_wheel_movement(int8_t z) HWND hWnd; #if TRACE_WHEEL - dprintf("w16mouse: wheel=%d\n", z); + dprintf(DPREFIX "wheel=%d\n", z); #endif // TODO It's highly unlikely that we can call this many functions from @@ -192,7 +191,7 @@ static void send_wheel_movement(int8_t z) hWnd = userapi.WindowFromPoint(point); #if TRACE_WHEEL - dprintf("w16mouse: initial hWnd=0x%x\n", hWnd); + dprintf(DPREFIX "initial hWnd=0x%x\n", hWnd); #endif while (hWnd) { @@ -455,7 +454,7 @@ BOOL FAR PASCAL LibMain(HINSTANCE hInstance, WORD wDataSegment, /** Called by Windows to retrieve information about the mouse hardware. */ WORD FAR PASCAL Inquire(LPMOUSEINFO lpMouseInfo) { - lpMouseInfo->msExist = 1; + lpMouseInfo->msExist = TRUE; lpMouseInfo->msRelative = 0; lpMouseInfo->msNumButtons = MOUSE_NUM_BUTTONS; lpMouseInfo->msRate = 80; |