]> git.cworth.org Git - acre/blobdiff - acre.c
Shrink title font size a bit.
[acre] / acre.c
diff --git a/acre.c b/acre.c
index 1ca05057544f0bef7ce378f05542beb7b7636163..e444e30557222e0ee73b7af7138a32a3f46213f9 100644 (file)
--- 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;