From 01666a739543347c2493476d11de6ef5fb807b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Wed, 21 Jan 2026 23:39:14 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A6=81=E3=82=89=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/control.c b/control.c index d145c86..54b923f 100644 --- a/control.c +++ b/control.c @@ -275,16 +275,6 @@ void handle_button_press(SuwaWindow *window, CtrlLabels *labels, int mx, int my) if (!btn) return; btn->pressed = 1; - XftDraw *backdraw = XftDrawCreate(window->display, window->backbuf, - DefaultVisual(window->display, DefaultScreen(window->display)), - DefaultColormap(window->display, DefaultScreen(window->display))); - if (!backdraw) { - fprintf(stderr, "Pixmap向けXftDrawの作成に失敗。\n"); - XFreePixmap(window->display, window->backbuf); - window->backbuf = None; - return; - } - window->event = (XEvent){.type = Expose}; control_expose(window, labels, btn); } @@ -294,16 +284,6 @@ void handle_button_release(SuwaWindow *window, CtrlLabels *labels, int mx, int m if (!btn) return; btn->pressed = 0; - XftDraw *backdraw = XftDrawCreate(window->display, window->backbuf, - DefaultVisual(window->display, DefaultScreen(window->display)), - DefaultColormap(window->display, DefaultScreen(window->display))); - if (!backdraw) { - fprintf(stderr, "Pixmap向けXftDrawの作成に失敗。\n"); - XFreePixmap(window->display, window->backbuf); - window->backbuf = None; - return; - } - const char *label = btn->text; if (strcmp(label, "C") == 0) { clear_calculator(labels);