From 44d244b910eac361e7ab6e5d9223779fe864ded1 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 30 Jan 2023 09:26:26 +0100
Subject: [PATCH] Fix build - SDL_EVENT_MOUSE_BUTTON_DOWN
---
showfont.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/showfont.c b/showfont.c
index a4497ef..24fafca 100644
--- a/showfont.c
+++ b/showfont.c
@@ -343,7 +343,7 @@ int main(int argc, char *argv[])
continue;
}
switch (event.type) {
- case SDL_EVENT_MOUSE_BUTTONDOWN:
+ case SDL_EVENT_MOUSE_BUTTON_DOWN:
scene.messageRect.x = event.button.x - text->w/2;
scene.messageRect.y = event.button.y - text->h/2;
scene.messageRect.w = text->w;