From 11a90c53ed4b007b1658d6d24fc943adff130286 Mon Sep 17 00:00:00 2001 From: Arthur Taylor Date: Wed, 21 Mar 2007 02:22:10 +0000 Subject: [PATCH] adjusted the rounded corners so that they fit nicely with the arcs around 2007-03-20 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=/trunk/; revision=3120 --- ChangeLog | 6 ++++++ src/frames.c | 32 ++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index df639ae5c..e5d278688 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-20 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-03-17 Kjartan Maraas * src/ui.c: Remove #include since it's diff --git a/src/frames.c b/src/frames.c index aac8a790e..874fb842f 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