Commit 2dd5c65e authored by Dom Lachowicz's avatar Dom Lachowicz
parent 13bda804
2004-06-09 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-styles.c (rsvg_viewport_percentage): Fix
http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-coords-units-02-b.html
2004-06-10 Caleb Moore <c.moore@student.unsw.edu.au>
* rsvg-paint-server.c: fixed all known pattern geometry problems
......
......@@ -23,6 +23,7 @@
Author: Raph Levien <raph@artofcode.com>
*/
#include <string.h>
#include <math.h>
#include "rsvg.h"
#include "rsvg-private.h"
......@@ -54,7 +55,7 @@ rsvg_state_current_color (RsvgState * cur_state, RsvgState * parent_state)
gdouble
rsvg_viewport_percentage (gdouble width, gdouble height)
{
return ((width * width) + (height * height)) / M_SQRT2;
return sqrt(width * height);
}
void
......
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