fix resizing imprecision
This commit is contained in:
parent
ee12c520d9
commit
a22cbb8aa3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue