From 9d87496f1078b5d993a5455b402041b98e3bbc0e Mon Sep 17 00:00:00 2001 From: Arthur Taylor Date: Mon, 9 Apr 2007 01:44:42 +0000 Subject: adjusted the rounded corners so that they fit nicely with the arcs around 2007-04-08 Arthur Taylor * src/frames.c (meta_frames_apply_shapes): adjusted the rounded corners so that they fit nicely with the arcs around them. Fixes #399373. svn path=/branches/gnome-2-18/; revision=3177 --- ChangeLog | 6 ++++++ src/frames.c | 32 ++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5777629b..2fd8c8b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-08 Arthur Taylor + + * src/frames.c (meta_frames_apply_shapes): adjusted the rounded + corners so that they fit nicely with the arcs around them. + Fixes #399373. + 2007-04-04 Elijah Newren * configure.in: post-release version bump to 2.18.2 diff --git a/src/frames.c b/src/frames.c index d6e953b8..caceb709 100644 --- a/src/frames.c +++ b/src/frames.c @@ -788,12 +788,13 @@ meta_frames_apply_shapes (MetaFrames *frames, if (fgeom.top_left_corner_rounded_radius != 0) { - const int radius = fgeom.top_left_corner_rounded_radius; + const int corner = fgeom.top_left_corner_rounded_radius; + const float radius = sqrt(corner) + corner; int i; - for (i=0; i