Commit f80c9a07 authored by Nick Sharp's avatar Nick Sharp
Browse files

use consistent bounds

parent 81100792
......@@ -25,10 +25,10 @@ void SoftwareRendererImp::draw_svg( SVG& svg ) {
}
// draw canvas outline
Vector2D a = transform(Vector2D( 0 , 0 )); a.x--; a.y++;
Vector2D b = transform(Vector2D(svg.width, 0 )); b.x++; b.y++;
Vector2D c = transform(Vector2D( 0 ,svg.height)); c.x--; c.y--;
Vector2D d = transform(Vector2D(svg.width,svg.height)); d.x++; d.y--;
Vector2D a = transform(Vector2D( 0 , 0 )); a.x--; a.y--;
Vector2D b = transform(Vector2D(svg.width, 0 )); b.x++; b.y--;
Vector2D c = transform(Vector2D( 0 ,svg.height)); c.x--; c.y++;
Vector2D d = transform(Vector2D(svg.width,svg.height)); d.x++; d.y++;
rasterize_line(a.x, a.y, b.x, b.y, Color::Black);
rasterize_line(a.x, a.y, c.x, c.y, Color::Black);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment