From 78a1c061a7987b1210ccf177cd3aaa9ddf778a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 17 Jan 2026 23:58:52 +0900 Subject: [PATCH] =?UTF-8?q?=C3=B7=E3=81=A8=C3=97=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/control.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/control.c b/src/control.c index 0b6a02a..4e96fba 100644 --- a/src/control.c +++ b/src/control.c @@ -256,7 +256,6 @@ void handle_button_release(UiSystem *ui, int mx, int my) { if (!btn) return; btn->pressed = 0; - XftDraw *backdraw = XftDrawCreate(ui->display, ui->backbuf, DefaultVisual(ui->display, DefaultScreen(ui->display)), DefaultColormap(ui->display, DefaultScreen(ui->display))); @@ -275,6 +274,10 @@ void handle_button_release(UiSystem *ui, int mx, int my) { const char *label = btn->text; if (strcmp(label, "C") == 0) { clear_calculator(ui); + } else if (strcmp(label, "×") == 0) { + append_to_input(ui, '*'); + } else if (strcmp(label, "÷") == 0) { + append_to_input(ui, '/'); } else if (strcmp(label, "<") == 0) { curinput[--input_pos] = '\0'; strcpy(ui->resLabel.text, curinput[0] ? curinput : "0");