commit 34530800bbf295b586737dc3a15336cb5a6d3c65
parent 42380f62ebebefc94eb986343d6d91b1b6106ed5
Author: silver <silver@repost.land>
Date: Sun, 13 Jun 2021 22:27:58 +0200
Fix error in >1 wide key width calc, also 2021
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/svkbd.c b/svkbd.c
@@ -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;
}