diff options
-rw-r--r-- | von-wait.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,14 +1,13 @@ #define _XOPEN_SOURCE /* glibc2 needs this */ #include <time.h> #include <sys/time.h> -#include <stdio.h> -#include <stdlib.h> -#include <getopt.h> #include <glib/gprintf.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <cairo.h> #define _GNU_SOURCE +#include <stdio.h> +#include <stdlib.h> #include <getopt.h> #define SECOND_INTERVAL 1000 @@ -87,7 +86,7 @@ static void paint (GtkWidget *widget, GdkEventExpose *eev, struct private *p) { cairo_save (cr); cairo_set_font_size (cr, 10*p->s); - cairo_move_to (cr, 10, 10); + cairo_move_to (cr, 10*p->s, 10*p->s); cairo_set_source_rgba (cr, 0.0f, 0.0f, 0.0f, 1.0f); cairo_show_text (cr, p->ts); cairo_restore (cr); @@ -173,7 +172,8 @@ gint main (gint argc, gchar **argv) { s_fmt = optarg; break; case 's': - p->s = optarg; + p->s = strtod(optarg, NULL); + break; case 'h': case '?': return usage(argv[0]); |