use drw color scheme fixup

This commit is contained in:
Markus Teich 2015-04-10 23:13:33 +02:00
parent bd3cfd17e3
commit 4d6dfeb1ad

11
sent.c
View File

@ -124,7 +124,7 @@ static int slidecount = 0;
static XWindow xw; static XWindow xw;
static struct DC dc; static struct DC dc;
static Drw *d = NULL; static Drw *d = NULL;
static ClrScheme sc; static Scm *sc;
static int running = 1; static int running = 1;
static void (*handler[LASTEvent])(XEvent *) = { static void (*handler[LASTEvent])(XEvent *) = {
@ -415,8 +415,7 @@ void cleanup(struct DC *cur)
return; return;
} }
drw_clr_free(sc.border); drw_scm_free(sc);
drw_clr_free(sc.fg);
drw_free(d); drw_free(d);
XDestroyWindow(xw.dpy, xw.win); XDestroyWindow(xw.dpy, xw.win);
@ -609,10 +608,8 @@ void xinit()
if(!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h))) if(!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h)))
eprintf("Can't create drawing context."); eprintf("Can't create drawing context.");
sc.border = drw_clr_create(d, "#FFFFFF"); sc = drw_scm_create(d, "#000000", "#FFFFFF");
sc.bg = sc.border; drw_setscheme(d, sc);
sc.fg = drw_clr_create(d, "#000000");
drw_setscheme(d, &sc);
xloadfonts(font); xloadfonts(font);