diff --git a/libs/sl/draw-pango.c b/libs/sl/draw-pango.c index 83e60c4..2bbe581 100644 --- a/libs/sl/draw-pango.c +++ b/libs/sl/draw-pango.c @@ -96,7 +96,7 @@ xfont_free(Fnt *font) } Fnt* -drw_font_create(Drw* drw, const char *font[], size_t fontcount) +drw_font_create(Drw* drw, char *font[], size_t fontcount) { Fnt *fnt = NULL; diff --git a/libs/sl/draw-pango.h b/libs/sl/draw-pango.h index 21c16e3..07cc59b 100644 --- a/libs/sl/draw-pango.h +++ b/libs/sl/draw-pango.h @@ -33,7 +33,7 @@ void drw_resize(Drw *drw, unsigned int w, unsigned int h); void drw_free(Drw *drw); /* Fnt abstraction */ -Fnt *drw_font_create(Drw* drw, const char *font[], size_t fontcount); +Fnt *drw_font_create(Drw* drw, char *font[], size_t fontcount); void drw_font_free(Fnt* set); unsigned int drw_font_getwidth(Drw *drw, const char *text, Bool markup); void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h, Bool markup); diff --git a/options.h b/options.h index 669dbf3..52d7947 100644 --- a/options.h +++ b/options.h @@ -34,7 +34,9 @@ static int borderwidth = 2; /* Width of the border */ static int bordercentered = 1; /* Draw border only when centered */ /* Font options */ -static char *font[] = "Noto Sans Mono 8"; /* Font to draw text and Pango markup with. */ +static char *font[] = { + "Noto Sans Mono 8", /* Font to draw text and Pango markup with. */ +}; /* Symbol options */ static char *leftarrow = "<"; /* Left arrow, used to indicate you can move to the left */