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
This commit is contained in:
parent
4b214b4710
commit
e8dda03441
@ -3581,7 +3581,7 @@ meta_draw_op_draw_with_env (const MetaDrawOp *op,
|
|||||||
rheight = parse_size_unchecked (op->data.arc.height, env);
|
rheight = parse_size_unchecked (op->data.arc.height, env);
|
||||||
|
|
||||||
start_angle = op->data.arc.start_angle * (M_PI / 180.)
|
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.);
|
end_angle = start_angle + op->data.arc.extent_angle * (M_PI / 180.);
|
||||||
center_x = rx + (double)rwidth / 2. + .5;
|
center_x = rx + (double)rwidth / 2. + .5;
|
||||||
center_y = ry + (double)rheight / 2. + .5;
|
center_y = ry + (double)rheight / 2. + .5;
|
||||||
|
Loading…
Reference in New Issue
Block a user