diff options
author | Niv Sardi <xaiki@cxhome.ath.cx> | 2007-06-08 16:48:37 +0200 |
---|---|---|
committer | Niv Sardi <xaiki@cxhome.ath.cx> | 2007-06-08 16:48:37 +0200 |
commit | ee8c55c1ad3955e103fb8a731c8373db1b2cb92b (patch) | |
tree | 5e0dd627ac1384aa55c749a3403eb06944db24b1 /von-wait.c | |
parent | 886a2b4f5ce9b849ae102311a7e29beed421d35e (diff) |
Diffstat (limited to 'von-wait.c')
-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]); |