Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix bug 1764: incorrect variable assignment in RenderDrawLinesWithRects

  • Loading branch information
ferzkopp committed Apr 17, 2013
1 parent d455bd1 commit ea5011fddc2d1fadb7609c7bd639828a94d71932
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/render/SDL_render.c
@@ -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);
}
}

0 comments on commit ea5011f

Please sign in to comment.