This is more sensible
This commit is contained in:
parent
1fc8513607
commit
c81e9abde9
1 changed files with 2 additions and 2 deletions
|
@ -225,8 +225,8 @@ int hexagram_dial_draw_legend(hexagram_dial *dial,
|
||||||
cairo_text_extents(cr, text, &extents);
|
cairo_text_extents(cr, text, &extents);
|
||||||
|
|
||||||
cairo_move_to(cr,
|
cairo_move_to(cr,
|
||||||
dial->gauge.x + radius * dial->radius * cos(angle) - extents.width / 1.5,
|
dial->gauge.x + radius * dial->radius * cos(angle) - extents.width / 2,
|
||||||
dial->gauge.y + radius * dial->radius * sin(angle) + extents.height / 1.5);
|
dial->gauge.y + radius * dial->radius * sin(angle) + extents.height / 2);
|
||||||
|
|
||||||
cairo_show_text(cr, text);
|
cairo_show_text(cr, text);
|
||||||
cairo_stroke(cr);
|
cairo_stroke(cr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue