サイズ変更が可能に+ボタンで計算の修正

This commit is contained in:
2026-01-18 01:01:47 +09:00
parent 78a1c061a7
commit cf4a24cc74
4 changed files with 79 additions and 72 deletions

View File

@@ -22,7 +22,7 @@ void drawbuttons(UiSystem *ui, SuwaButton *btn, XftDraw *xftdraw) {
int tx = btn->x + (btn->width - text_w) / 2;
int ty = btn->y + (btn->height - text_h) / 2 + ui->font->ascent;
XftDrawStringUtf8(xftdraw, &ui->color, ui->font, tx, ty,
XftDrawStringUtf8(xftdraw, &btn->fg_color, ui->font, tx, ty,
(FcChar8 *)btn->text, len);
}
}