Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix bug 1764: incorrect variable assignment in RenderDrawLinesWithRects
Browse files Browse the repository at this point in the history
  • Loading branch information
ferzkopp committed Apr 17, 2013
1 parent d455bd1 commit ea5011f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render/SDL_render.c
Expand Up @@ -1297,10 +1297,10 @@ RenderDrawLinesWithRects(SDL_Renderer * renderer,
frect->h = renderer->scale.y;
} else {
/* FIXME: We can't use a rect for this line... */
frects[0].x = points[i].x * renderer->scale.x;
frects[0].y = points[i].y * renderer->scale.y;
frects[1].x = points[i+1].x * renderer->scale.x;
frects[1].y = points[i+1].y * renderer->scale.y;
fpoints[0].x = points[i].x * renderer->scale.x;
fpoints[0].y = points[i].y * renderer->scale.y;
fpoints[1].x = points[i+1].x * renderer->scale.x;
fpoints[1].y = points[i+1].y * renderer->scale.y;
status += renderer->RenderDrawLines(renderer, fpoints, 2);
}
}
Expand Down

0 comments on commit ea5011f

Please sign in to comment.