Maelstrom: Use the correct variable for mouse button input

https://github.com/libsdl-org/Maelstrom/commit/d20ae6add6f2a5beb0d753a138f72d203815a16c

From d20ae6add6f2a5beb0d753a138f72d203815a16c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 18 Sep 2012 01:47:23 -0700
Subject: [PATCH] Use the correct variable for mouse button input

---
 screenlib/SDL_FrameBuf.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
index d9e2e224..8a4837d7 100644
--- a/screenlib/SDL_FrameBuf.cpp
+++ b/screenlib/SDL_FrameBuf.cpp
@@ -150,8 +150,8 @@ FrameBuf::ProcessEvent(SDL_Event *event)
 	case SDL_MOUSEBUTTONUP:
 		event->button.x -= output.x;
 		event->button.y -= output.y;
-		event->motion.x = (event->motion.x * rect.w) / output.w;
-		event->motion.y = (event->motion.y * rect.h) / output.h;
+		event->button.x = (event->button.x * rect.w) / output.w;
+		event->button.y = (event->button.y * rect.h) / output.h;
 		break;
 	}
 }