renderer: remove obsolete candidate offset
This commit is contained in:
6
win.c
6
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user