From 7055001d8562e80c0cc9073f21ffb3b83b9ecffe Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 28 Aug 2024 15:59:13 -0700
Subject: [PATCH] Fixed SDL_GetPrimaryDisplay()
---
src/video/SDL_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index caa1f7977759b..dac0b0e829b41 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -940,7 +940,7 @@ SDL_DisplayID SDL_GetPrimaryDisplay(void)
{
if (!_this || _this->num_displays == 0) {
SDL_UninitializedVideo();
- return true;
+ return 0;
}
return _this->displays[0]->id;
}