As an optimization, draw horizontal and vertical lines using rectangles

main
Sam Lantinga 2022-01-08 11:09:11 -08:00
parent 3da7c6305a
commit c1e6079836
1 changed files with 1 additions and 1 deletions

View File

@ -3022,7 +3022,7 @@ SDL_RenderDrawLinesF(SDL_Renderer * renderer,
use_rendergeometry = 1; use_rendergeometry = 1;
if (use_renderpoints) { if (use_renderpoints) {
retval = RenderDrawLinesWithPointsF(renderer, points, count); retval = RenderDrawLinesWithRectsF(renderer, points, count);
} else if (use_rendergeometry) { } else if (use_rendergeometry) {
SDL_bool isstack1; SDL_bool isstack1;
SDL_bool isstack2; SDL_bool isstack2;