X-Git-Url: https://git.cworth.org/git?p=acre;a=blobdiff_plain;f=acre.c;h=3ddf14382a880a7db7edebff34512040e34fb1e3;hp=1ca05057544f0bef7ce378f05542beb7b7636163;hb=573652f264c7fc92e985d118b1f3dc64a5c6c9fc;hpb=9f7a70910ddcb7e29103a293e2ae6f056adcf45a diff --git a/acre.c b/acre.c index 1ca0505..3ddf143 100644 --- a/acre.c +++ b/acre.c @@ -552,7 +552,7 @@ _draw_ticks (acre_t *acre, t += sub_step) { int tick_size; - if (fabs((t / step) - (int) (t / step)) < 0.5 * (sub_step / step)) + if (fabs((t / step) - round (t / step)) < 0.5 * (sub_step / step)) tick_size = ACRE_TICK_MAJOR_SIZE; else tick_size = ACRE_TICK_MINOR_SIZE;