/*
* On-screen Display Daemon
*
- * (c) 2010--2013 Martin Mares <mj@ucw.cz>
+ * (c) 2010--2014 Martin Mares <mj@ucw.cz>
*/
#include <stdio.h>
/*** Options ***/
-static char *font_name = "times-64";
+static char *font_name = "times-64:bold";
static char *default_color = "green";
static char *default_outline_color = "black";
static int default_outline_width = 2;
}
else if (!strcmp(key, "percentage") || !strcmp(key, "percent"))
{
- // FIXME
- // xosd_display(osd, row++, XOSD_percentage, atoi(val));
+ l = osd_add_line(osd, OSD_TYPE_PERCENTAGE);
+ l->u.percent = atoi(val);
}
else if (!strcmp(key, "slider"))
{
- // FIXME
- // xosd_display(osd, row++, XOSD_slider, atoi(val));
+ l = osd_add_line(osd, OSD_TYPE_SLIDER);
+ l->u.percent = atoi(val);
}
else if (!strcmp(key, "duration"))
msg->max_light = now + atoi(val);