sdl12-compat: events: Mousewheels need to report current mouse position.

From 50bde9f51d5e1714fdd87d380a030b28ce6a2cf1 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 28 Sep 2022 13:18:38 -0400
Subject: [PATCH] events: Mousewheels need to report current mouse position.

Reference issue #215.
---
 src/SDL12_compat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index ff1e9951..3c9272fc 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -4616,8 +4616,8 @@ EventFilter20to12(void *data, SDL_Event *event20)
             event12.button.which = (Uint8) event20->wheel.which;
             event12.button.button = (event20->wheel.y > 0) ? 4 : 5;  /* wheelup is 4, down is 5. */
             event12.button.state = SDL_PRESSED;
-            event12.button.x = 0;
-            event12.button.y = 0;
+            event12.button.x = MousePosition.x;
+            event12.button.y = MousePosition.y;
             PushEventIfNotFiltered(&event12);
 
             event12.type = SDL12_MOUSEBUTTONUP;  /* immediately release mouse "button" at the end of this switch. */