fix resizing imprecision

This commit is contained in:
~d6 2023-12-12 22:31:05 -05:00
parent ee12c520d9
commit a22cbb8aa3
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ emu_resize(int width, int height)
if(window) { if(window) {
visual = DefaultVisual(display, 0); 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); 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); XMapWindow(display, window);
} }
return 1; return 1;