From 63867813516961dd724d88582997588c778ca38f Mon Sep 17 00:00:00 2001
From: Aleksey Sakovets <[EMAIL REDACTED]>
Date: Mon, 7 Jul 2025 21:56:07 +0300
Subject: [PATCH] README-macos.md: replace old API calls
---
docs/README-macos.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/README-macos.md b/docs/README-macos.md
index fb0639b66eda5..e5c75c1c813b2 100644
--- a/docs/README-macos.md
+++ b/docs/README-macos.md
@@ -49,7 +49,7 @@ NSApplicationDelegate implementation:
```objc
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
{
- if (SDL_GetEventState(SDL_EVENT_QUIT) == SDL_ENABLE) {
+ if (SDL_EventEnabled(SDL_EVENT_QUIT)) {
SDL_Event event;
SDL_zero(event);
event.type = SDL_EVENT_QUIT;
@@ -61,7 +61,7 @@ NSApplicationDelegate implementation:
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
{
- if (SDL_GetEventState(SDL_EVENT_DROP_FILE) == SDL_ENABLE) {
+ if (SDL_EventEnabled(SDL_EVENT_DROP_FILE)) {
SDL_Event event;
SDL_zero(event);
event.type = SDL_EVENT_DROP_FILE;