sdl12-compat: Fixed build warnings

From 456fae201cace6fff1ea6dd39e031b49186caf33 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 27 Oct 2025 09:08:45 -0700
Subject: [PATCH] Fixed build warnings

---
 src/SDL12_compat.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 2654927ac..e122fd9a0 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -5071,10 +5071,10 @@ EventFilter20to12(void *data, SDL_Event *event20)
                         case SDLK12_UNKNOWN:
                             FlushPendingKeydownEvent(0);
                             break;
-                        case SDLK_SPACE:
+                        case SDLK12_SPACE:
                             FlushPendingKeydownEvent(' ');
                             break;
-                        case SDLK_DELETE:
+                        case SDLK12_DELETE:
                             FlushPendingKeydownEvent('\x7F');
                             break;
                         default:
@@ -7734,7 +7734,7 @@ DECLSPEC12 SDL12_GrabMode SDLCALL
 SDL_WM_GrabInput(SDL12_GrabMode mode)
 {
     if (mode != SDL12_GRAB_QUERY) {
-        VideoWindowGrabWanted = mode;
+        VideoWindowGrabWanted = (mode == SDL12_GRAB_ON) ? SDL_TRUE : SDL_FALSE;
         UpdateInputGrab();
     }
     return VideoWindowGrabWanted ? SDL12_GRAB_ON : SDL12_GRAB_OFF;