Fix error in >1 wide key width calc, also 2021

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
silver 2021-06-13 22:27:58 +02:00 committed by Hiltjo Posthuma
parent 42380f62eb
commit 34530800bb
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ updatekeys(void)
for (x = 0; i < numkeys && keys[i].keysym != 0; i++) {
keys[i].x = x;
keys[i].y = y;
keys[i].w = keys[i].width * (ww - 1) / base;
keys[i].w = keys[i].width * ww / base;
keys[i].h = r == 1 ? wh - y - 1 : h;
x += keys[i].w;
}