summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--von-wait.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/von-wait.c b/von-wait.c
index 83bd2a1..31ab64b 100644
--- a/von-wait.c
+++ b/von-wait.c
@@ -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]);