From c1e6079836cd34a39c8c3428e9a398eaf40a2873 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jan 2022 11:09:11 -0800 Subject: [PATCH] As an optimization, draw horizontal and vertical lines using rectangles --- src/render/SDL_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 299af2279..2f6fe8345 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -3022,7 +3022,7 @@ SDL_RenderDrawLinesF(SDL_Renderer * renderer, use_rendergeometry = 1; if (use_renderpoints) { - retval = RenderDrawLinesWithPointsF(renderer, points, count); + retval = RenderDrawLinesWithRectsF(renderer, points, count); } else if (use_rendergeometry) { SDL_bool isstack1; SDL_bool isstack2;