OpenBSD対応

This commit is contained in:
2026-01-18 02:38:41 +09:00
parent cf4a24cc74
commit 1d5bff86eb
6 changed files with 45 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;