From a22cbb8aa3a07d4f299690e2c781643a81268dd1 Mon Sep 17 00:00:00 2001 From: d_m Date: Tue, 12 Dec 2023 22:31:05 -0500 Subject: [PATCH] fix resizing imprecision --- src/uxn11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxn11.c b/src/uxn11.c index 926fdcd..f9630b4 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -98,7 +98,7 @@ emu_resize(int width, int height) if(window) { visual = DefaultVisual(display, 0); ximage = XCreateImage(display, visual, DefaultDepth(display, DefaultScreen(display)), ZPixmap, 0, (char *)uxn_screen.pixels, uxn_screen.width * s, uxn_screen.height * s, 32, 0); - XResizeWindow(display, window, w * s, h * s); + XResizeWindow(display, window, w * s + 2 * PAD, h * s + 2 * PAD); XMapWindow(display, window); } return 1;