From f14ede5a8bc8384ab771aca61a71ba951c70e038 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 24 Jul 2025 20:00:04 +0300
Subject: [PATCH] fix bad parenthesing leading to MSVC C4244 warning after
commit 678ad7e
---
src/SDL12_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index c89f3f109..53ef8da43 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -8179,7 +8179,7 @@ SDL_GL_SwapBuffers(void)
if(OpenGLBuffersSwapTickInterval != 0.f) {
const Uint32 tickDelta = SDL20_GetTicks() - OpenGLBuffersLastSwapTicks;
if(tickDelta < OpenGLBuffersSwapTickInterval) {
- SDL20_Delay( ((int)OpenGLBuffersSwapTickInterval+0.5) - tickDelta );
+ SDL20_Delay((int)(OpenGLBuffersSwapTickInterval + 0.5f) - tickDelta);
}
}
/* Some applications, e.g. Awesomenauts, play with glXMakeCurrent() behind our backs and break SwapBuffers() */