Commit 03921902 authored by Eli Zaretskii's avatar Eli Zaretskii

; Add commentary to w32inevt.c

* src/w32inevt.c (do_mouse_event): Comment on mouse
coordinates in console mouse-wheel events.
parent a5ca89d3
Pipeline #3753 passed with stage
in 55 minutes and 8 seconds
......@@ -534,6 +534,12 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
struct frame *f = get_frame ();
/* Mouse positions in console wheel events are reported to
ReadConsoleInput relative to the display's top-left
corner(!), not relative to the origin of the console screen
buffer. This makes these coordinates unusable; e.g.,
scrolling the tab-line in general doesn't work.
FIXME (but how?). */
int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y;
bool down_p = (event->dwButtonState & 0x10000000) != 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment