We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1794

Summary: Bug in RenderDrawLinesWithRects() in SDL_render.c
Product: SDL Reporter: Pallav Nawani <pallavnawani>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: aschiffler
Version: HG 2.0   
Hardware: All   
OS: All   

Description Pallav Nawani 2013-04-09 07:14:48 UTC
In SDL_render.c, Line 1300 - 1303:
            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;
Should be:
            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;

Replaced frects by fpoints.
Comment 1 Andreas Schiffler 2013-04-17 10:37:13 UTC
Fixed with
http://hg.libsdl.org/SDL/rev/873715d91f83