Remove usages of restrict keyword in SDL_render.c

I ran into the usage of `restrict` breaking builds targeting Windows XP, as the v141 MSVC toolset doesn't support the keyword.
This commit is contained in:
nightmareci authored and Sam Lantinga committed 2025-02-18 11:40:43 -08:00
1 parent a7f01cd73c
commit 7500a758b8
1 file changed
+1 -1
+1 -1
View File
@@ -2787,7 +2787,7 @@ static void SDL_RenderLogicalPresentation(SDL_Renderer *renderer)
}
}
static bool SDL_RenderVectorFromWindow(SDL_Renderer *renderer, float window_dx, float window_dy, float *restrict dx, float *restrict dy)
static bool SDL_RenderVectorFromWindow(SDL_Renderer *renderer, float window_dx, float window_dy, float *dx, float *dy)
{
// Convert from window coordinates to pixels within the window
window_dx *= renderer->dpi_scale.x;