From 6c180942bff9f4d0c129fbb7ff16c17fc84e5314 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 19 Feb 2021 18:50:02 +0300
Subject: [PATCH] make SDL_GetWMInfo return 0, not -1 (github bug #21,#22)
some programs only test against 0, not -1
---
src/SDL12_compat.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 9fa34ae..89bb7d0 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -3643,9 +3643,10 @@ SDL_SetColors(SDL12_Surface *surface12, const SDL_Color * colors, int firstcolor
DECLSPEC int SDLCALL
SDL_GetWMInfo(SDL_SysWMinfo * info)
{
- FIXME("write me");
//return SDL20_GetWindowWMInfo(VideoWindow20, info);
- return SDL20_Unsupported();
+ FIXME("write me");
+ SDL20_Unsupported();
+ return 0; /* some programs only test against 0, not -1 */
}
DECLSPEC SDL12_Overlay * SDLCALL