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 - Bug in RenderDrawLinesWithRects() in SDL_render.c
Summary: Bug in RenderDrawLinesWithRects() in SDL_render.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 07:14 UTC by Pallav Nawani
Modified: 2013-04-17 10:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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