Introduction
Introduction Statistics Contact Development Disclaimer Help
use drw color scheme fixup - sent - simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log
Files
Refs
README
LICENSE
---
commit 4d6dfeb1adec7a9af90aa496540dfa1c57cfc4e7
parent bd3cfd17e30397c9cca297c5ac065e4f85e86dce
Author: Markus Teich <[email protected]>
Date: Fri, 10 Apr 2015 23:13:33 +0200
use drw color scheme fixup
Diffstat:
M sent.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/sent.c b/sent.c
@@ -124,7 +124,7 @@ static int slidecount = 0;
static XWindow xw;
static struct DC dc;
static Drw *d = NULL;
-static ClrScheme sc;
+static Scm *sc;
static int running = 1;
static void (*handler[LASTEvent])(XEvent *) = {
@@ -415,8 +415,7 @@ void cleanup(struct DC *cur)
return;
}
- drw_clr_free(sc.border);
- drw_clr_free(sc.fg);
+ drw_scm_free(sc);
drw_free(d);
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)))
eprintf("Can't create drawing context.");
- sc.border = drw_clr_create(d, "#FFFFFF");
- sc.bg = sc.border;
- sc.fg = drw_clr_create(d, "#000000");
- drw_setscheme(d, &sc);
+ sc = drw_scm_create(d, "#000000", "#FFFFFF");
+ drw_setscheme(d, sc);
xloadfonts(font);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.