diff options
author | infirit <[email protected]> | 2014-11-12 19:01:48 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-12 20:36:50 +0100 |
commit | a65e3c4165a5433de49e94bfb86f9c3e9ba32dce (patch) | |
tree | bfbc580f6aadacb70c1522c2bf3d7bcc058fd398 | |
parent | d817c619c77795b9fd438ff5b3931df6b2d38184 (diff) | |
download | marco-a65e3c4165a5433de49e94bfb86f9c3e9ba32dce.tar.bz2 marco-a65e3c4165a5433de49e94bfb86f9c3e9ba32dce.tar.xz |
Fix drawing of <arc> elements
This patch fixes the drawing of <arc> theme elements to appear in the desired orientation
Based on metacity commit: 120c7790d6c5a837372ef1e0105e89ac674facd8
From: Nickolas Lloyd <[email protected]>
-rw-r--r-- | src/ui/theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 763f4f3a..71a0ca36 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -3600,7 +3600,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; |