Commit c1e6079836cd34a39c8c3428e9a398eaf40a2873

Sam Lantinga 2022-01-08T11:09:11

As an optimization, draw horizontal and vertical lines using rectangles

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 299af22..2f6fe83 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;