From dfa929d625028dae01c8317823f210a3b056c385 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 10 Mar 2024 21:20:32 +0100 Subject: minor cleanup --- mousew16.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mousew16.c b/mousew16.c index fd25609..d675001 100644 --- a/mousew16.c +++ b/mousew16.c @@ -18,7 +18,6 @@ */ #include -#include #include #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; -- cgit v1.2.3