SDL: render: Patched to compile.

From 4a40a272bd317f99869f3f9c95d845457d3107f8 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 24 Nov 2023 22:47:44 -0500
Subject: [PATCH] render: Patched to compile.

Bad cherry-pick on my part, sorry!

Fixes #8609.
---
 src/render/SDL_render.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index e7006fb407b1..847e14d68097 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -2755,16 +2755,11 @@ static int RenderLineBresenham(SDL_Renderer *renderer, int x1, int y1, int x2, i
     int retval;
     SDL_bool isstack;
     SDL_FPoint *points;
-    SDL_Rect clip_rect;
 
     /* the backend might clip this further to the clipping rect, but we
        just want a basic safety against generating millions of points for
        massive lines. */
-    clip_rect.x = (int) renderer->viewport.x;
-    clip_rect.y = (int) renderer->viewport.y;
-    clip_rect.w = (int) renderer->viewport.w;
-    clip_rect.h = (int) renderer->viewport.h;
-    if (!SDL_IntersectRectAndLine(&clip_rect, &x1, &y1, &x2, &y2)) {
+    if (!SDL_GetRectAndLineIntersection(&renderer->view->viewport, &x1, &y1, &x2, &y2)) {
         return 0;
     }