ごめん

This commit is contained in:
2026-01-17 18:39:32 +09:00
parent fa83f224e2
commit c6f2982855
2 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,8 @@
void drawbuttons(UiSystem *ui, SuwaButton *btn, XftDraw *xftdraw) {
unsigned long curbg = btn->pressed ? BTSEL : BTCOL;
XSetForeground(ui->display, ui->gc, curbg);
XFillRectangle(ui->display, ui->target, ui->gc, btn->x, btn->y, btn->width, btn->height);
XFillRectangle(ui->display, ui->target, ui->gc, btn->x, btn->y,
btn->width, btn->height);
// 文字の中央に
if (btn->label && ui->font && xftdraw) {
@@ -24,7 +25,7 @@ void drawbuttons(UiSystem *ui, SuwaButton *btn, XftDraw *xftdraw) {
// tx -= extents.x;
XftDrawStringUtf8(xftdraw, &ui->textcolor, ui->font, tx, ty,
XftDrawStringUtf8(xftdraw, &ui->color, ui->font, tx, ty,
(FcChar8 *)btn->label, len);
}
}