From 809f8a0eff8dbb2b508084bab8dd7c877744604d Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 31 May 2021 14:56:40 +0300
Subject: [PATCH] minor build fixes.
---
src/SDL12_compat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 371d7ec..cdcdeb3 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -3534,7 +3534,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags12)
const char *old_scale_quality = SDL20_GetHint(SDL_HINT_RENDER_SCALE_QUALITY);
const char *scale_method_env = SDL20_getenv("SDL12COMPAT_SCALE_METHOD");
const SDL_bool want_vsync = (vsync_env && SDL20_atoi(vsync_env)) ? SDL_TRUE : SDL_FALSE;
- const SDL_bool want_nearest = (scale_method_env && !SDL20_strcmp(scale_method_env, "nearest"));
+ const SDL_bool want_nearest = (scale_method_env && !SDL20_strcmp(scale_method_env, "nearest"))? SDL_TRUE : SDL_FALSE;
SDL_RendererInfo rinfo;
SDL_assert(!VideoGLContext20); /* either a new window or we destroyed all this */
if (!VideoRenderer20 && want_vsync) {
@@ -4636,7 +4636,7 @@ SDL_GL_SwapBuffers(void)
if (OpenGLLogicalScalingFBO != 0) {
const GLboolean has_scissor = OpenGLFuncs.glIsEnabled(GL_SCISSOR_TEST);
const char *scale_method_env = SDL20_getenv("SDL12COMPAT_SCALE_METHOD");
- const SDL_bool want_nearest = (scale_method_env && !SDL20_strcmp(scale_method_env, "nearest"));
+ const SDL_bool want_nearest = (scale_method_env && !SDL20_strcmp(scale_method_env, "nearest"))? SDL_TRUE : SDL_FALSE;
GLfloat clearcolor[4];
float want_aspect, real_aspect;
int drawablew, drawableh;