mirror of https://github.com/encounter/SDL.git
As an optimization, draw horizontal and vertical lines using rectangles
This commit is contained in:
parent
3da7c6305a
commit
c1e6079836
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue