fix issues with gcc compilation

This commit is contained in:
speedie 2023-03-09 17:15:10 +01:00
parent e4d1dc81e3
commit 416ce0cf08
3 changed files with 5 additions and 3 deletions

View file

@ -96,7 +96,7 @@ xfont_free(Fnt *font)
} }
Fnt* 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; Fnt *fnt = NULL;

View file

@ -33,7 +33,7 @@ void drw_resize(Drw *drw, unsigned int w, unsigned int h);
void drw_free(Drw *drw); void drw_free(Drw *drw);
/* Fnt abstraction */ /* 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); void drw_font_free(Fnt* set);
unsigned int drw_font_getwidth(Drw *drw, const char *text, Bool markup); 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); void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h, Bool markup);

View file

@ -34,7 +34,9 @@ static int borderwidth = 2; /* Width of the border */
static int bordercentered = 1; /* Draw border only when centered */ static int bordercentered = 1; /* Draw border only when centered */
/* Font options */ /* 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 */ /* Symbol options */
static char *leftarrow = "<"; /* Left arrow, used to indicate you can move to the left */ static char *leftarrow = "<"; /* Left arrow, used to indicate you can move to the left */