Sdl12-compat: SDL_SetVideoMode: clear SDL_HWACCEL bit

From 8e4b577e717b3585c5a619df5181c70473e94df7 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 21 Feb 2021 01:00:10 +0300
Subject: [PATCH] SDL_SetVideoMode: clear SDL_HWACCEL bit

just in case - see:
https://github.com/libsdl-org/SDL-1.2/issues/817
---
 src/SDL12_compat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index c017a8d..a8dacc7 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2821,6 +2821,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags12)
 
     FIXME("currently ignores SDL_WINDOWID, which we could use with SDL_CreateWindowFrom ...?");
 
+    flags12 &= ~SDL12_HWACCEL; /* just in case - https://github.com/libsdl-org/SDL-1.2/issues/817 */
+
     /* SDL_SetVideoMode() implicitly inits if necessary. */
     if (SDL20_WasInit(SDL_INIT_VIDEO) == 0) {
         if (SDL20_Init(SDL_INIT_VIDEO) < 0) {