OpenBSD対応
This commit is contained in:
@@ -215,7 +215,11 @@ void control_expose(UiSystem *ui, XEvent *e) {
|
||||
XftColorAllocName(ui->display,
|
||||
DefaultVisual(ui->display, DefaultScreen(ui->display)),
|
||||
DefaultColormap(ui->display, DefaultScreen(ui->display)),
|
||||
#if defined(__OpenBSD__)
|
||||
"#232320", &buttonColor);
|
||||
#elif defined(__FreeBSD__)
|
||||
"#232020", &buttonColor);
|
||||
#endif
|
||||
}
|
||||
initialized = 1;
|
||||
|
||||
|
||||
7
src/ui.h
7
src/ui.h
@@ -4,10 +4,17 @@
|
||||
#include <X11/Xft/Xft.h>
|
||||
|
||||
#define FGCOL 0xfcfcfc
|
||||
#if defined(__OpenBSD__)
|
||||
#define BGCOL 0x232320
|
||||
#define BTSEL 0xb8b515
|
||||
#define BTCOL 0xf1ed25
|
||||
#define BTHVR 0xecea71
|
||||
#elif defined(__OpenBSD__)
|
||||
#define BGCOL 0x232020
|
||||
#define BTSEL 0xb61729
|
||||
#define BTCOL 0xee4030
|
||||
#define BTHVR 0xf35869
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int x, y, width, height;
|
||||
|
||||
Reference in New Issue
Block a user