X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=acre.c;h=e444e30557222e0ee73b7af7138a32a3f46213f9;hb=7d126a0ca948c293e4152c50bdb2a8a0ce48f1f9;hp=1ca05057544f0bef7ce378f05542beb7b7636163;hpb=9f7a70910ddcb7e29103a293e2ae6f056adcf45a;p=acre diff --git a/acre.c b/acre.c index 1ca0505..e444e30 100644 --- a/acre.c +++ b/acre.c @@ -160,7 +160,7 @@ acre_add_data (acre_t *acre, acre_data_t *data) #define ACRE_FONT_FAMILY "sans" #define ACRE_FONT_SIZE 12 -#define ACRE_TITLE_FONT_SIZE 32 +#define ACRE_TITLE_FONT_SIZE 20 #define ACRE_PAD (ACRE_FONT_SIZE) #define ACRE_TICK_MAJOR_SIZE 6 #define ACRE_TICK_MINOR_SIZE 3 @@ -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;