xenia
xenia copied to clipboard
Minimized window breaks Xenia
I've already tested it on 3 games and it's the same everywhere. When I minimize the Xenia window, the application just breaks and closes.
I've just checked, yes, that's the case as zero width and height are passed to ResizeBuffers of the DXGI swap chain, while the client area of the window is also zero-size. This will be fixed in the upcoming presenter update though — the swap chain will be destroyed completely when the window has a zero width or height.
It was possible that previously, when swap chains were attached to a HWND, some valid size was still used in this case, however, when we switched to DirectComposition, it has become completely impossible not to specify the proper size explicitly.