SDL: egl: make an int into an SDL_bool.

From 31477160229c2b49dff91ac6155b16d164dfbb78 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 22 Sep 2021 09:27:41 -0400
Subject: [PATCH] egl: make an int into an SDL_bool.

---
 src/video/SDL_egl.c   | 4 ++--
 src/video/SDL_egl_c.h | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c
index 2bd2a08c0f..c8af1a55d7 100644
--- a/src/video/SDL_egl.c
+++ b/src/video/SDL_egl.c
@@ -546,7 +546,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
     /* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
     SDL_EGL_GetVersion(_this);
 
-    _this->egl_data->is_offscreen = 0;
+    _this->egl_data->is_offscreen = SDL_FALSE;
 
     return 0;
 }
@@ -634,7 +634,7 @@ SDL_EGL_InitializeOffscreen(_THIS, int device)
     /* Get the EGL version with a valid egl_display, for EGL <= 1.4 */
     SDL_EGL_GetVersion(_this);
 
-    _this->egl_data->is_offscreen = 1;
+    _this->egl_data->is_offscreen = SDL_TRUE;
 
     return 0;
 }
diff --git a/src/video/SDL_egl_c.h b/src/video/SDL_egl_c.h
index 6c67e4af5c..e6580647ec 100644
--- a/src/video/SDL_egl_c.h
+++ b/src/video/SDL_egl_c.h
@@ -117,8 +117,7 @@ typedef struct SDL_EGL_VideoData
 
 
     /* whether EGL display was offscreen */
-    int is_offscreen;
-
+    SDL_bool is_offscreen;
 } SDL_EGL_VideoData;
 
 /* OpenGLES functions */