summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorNickolas Lloyd <ultrageek.lloyd@gmail.com>2010-10-05 19:24:09 +0000
committerOwen W. Taylor <otaylor@fishsoup.net>2010-11-22 16:49:02 -0500
commit120c7790d6c5a837372ef1e0105e89ac674facd8 (patch)
treedfc3db839ff5bdf9d890d8ad8513787b66777767 /src/ui
parentba2e5f7f541446931299814bafa642d09047f386 (diff)
downloadmetacity-120c7790d6c5a837372ef1e0105e89ac674facd8.tar.gz
metacity-120c7790d6c5a837372ef1e0105e89ac674facd8.tar.bz2
Fix drawing of <arc> elements
This patch fixes the drawing of <arc> theme elements to appear in the desired orientation https://bugzilla.gnome.org/show_bug.cgi?id=631487
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b19cfbf..1397fc6 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3552,7 +3552,7 @@ meta_draw_op_draw_with_env (const MetaDrawOp *op,
rheight = parse_size_unchecked (op->data.arc.height, env);
start_angle = op->data.arc.start_angle * (M_PI / 180.)
- - (.25 * M_PI); /* start at 12 instead of 3 oclock */
+ - (.5 * M_PI); /* start at 12 instead of 3 oclock */
end_angle = start_angle + op->data.arc.extent_angle * (M_PI / 180.);
center_x = rx + (double)rwidth / 2. + .5;
center_y = ry + (double)rheight / 2. + .5;