Be consistent in your expressions
This commit is contained in:
parent
cc978ca13e
commit
f98c0784bd
1 changed files with 6 additions and 4 deletions
10
src/dial.c
10
src/dial.c
|
@ -268,11 +268,13 @@ int hexagram_dial_draw_mark(hexagram_dial *dial,
|
||||||
}
|
}
|
||||||
|
|
||||||
int hexagram_dial_draw_needle(hexagram_dial *dial, cairo_t *cr, double value) {
|
int hexagram_dial_draw_needle(hexagram_dial *dial, cairo_t *cr, double value) {
|
||||||
double angle = hexagram_dial_angle(dial, value),
|
double angle = hexagram_dial_angle(dial, value),
|
||||||
min_radius = DIAL_RADIUS_NEEDLE_MAIN_MIN,
|
min_radius, max_radius;
|
||||||
max_radius = DIAL_RADIUS_NEEDLE_MAIN_MAX;
|
|
||||||
|
|
||||||
if (dial->type == HEXAGRAM_DIAL_BOTTOM) {
|
if (dial->type == HEXAGRAM_DIAL_MAIN) {
|
||||||
|
min_radius = DIAL_RADIUS_NEEDLE_MAIN_MIN,
|
||||||
|
max_radius = DIAL_RADIUS_NEEDLE_MAIN_MAX;
|
||||||
|
} else {
|
||||||
min_radius = DIAL_RADIUS_NEEDLE_BOTTOM_MIN;
|
min_radius = DIAL_RADIUS_NEEDLE_BOTTOM_MIN;
|
||||||
max_radius = DIAL_RADIUS_NEEDLE_BOTTOM_MAX;
|
max_radius = DIAL_RADIUS_NEEDLE_BOTTOM_MAX;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue