#include <ctype.h>
#include <x11.h>
+#include "config.h"
+
typedef struct {
float score;
char* string;
}
static void redraw(XConf* x) {
- x11_draw_rect(x, 0x00, 0, 0, x->width, x->height);
+ size_t fheight = x->font->height;
+ x11_draw_rect(x, Palette[EditBg], 0, 0, x->width, x->height);
+ x11_draw_rect(x, Palette[TagsBg], 0, 0, x->width, fheight + 4);
+ x11_draw_rect(x, Palette[HorBdr], 0, fheight + 4, x->width, 1);
x11_flip(x);
}
| ButtonPressMask
| ExposureMask
);
+ if (!(x.font = x11_font_load(&x, Fonts[0]))) {
+ perror("unable to load base font");
+ exit(EXIT_FAILURE);
+ }
x11_init_gc(&x);
x11_centerwin(&x);
x11_show(&x);