From 88d26c598d8cb877657f4a818c2a21cd5039962c Mon Sep 17 00:00:00 2001 From: Hojun-Cho Date: Thu, 13 Aug 2026 23:21:59 +0900 Subject: [PATCH] renderer: remove obsolete candidate offset --- win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win.c b/win.c index f6b6c4a..5c276fa 100644 --- a/win.c +++ b/win.c @@ -171,7 +171,7 @@ fill(u32int *buf, int n, u32int color) } static void -drawkouho(Drawcmd *dc, int first, int n, int w, int h) +drawkouho(Drawcmd *dc, int n, int w, int h) { int npre, sely, y, i; Str *s; @@ -185,7 +185,7 @@ drawkouho(Drawcmd *dc, int first, int n, int w, int h) fill(img + sely * w, Fontsz * w, Colsel); } for(i = 0, y = npre * Fontsz; i < n; i++, y += Fontsz){ - s = &dc->kouho[first+i]; + s = &dc->kouho[i]; putfont(img, w, h, 0, y, '1' + i + Asciitofull); drawstr(img, 2*Fontsz, y, s->r, s->n, w, h); } @@ -244,7 +244,7 @@ winshow(Drawcmd *dc) XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, vals); xcb_map_window(conn, win); - drawkouho(dc, 0, n, w, h); + drawkouho(dc, n, w, h); putimage(w, h); return xcb_flush(conn) > 0; }