Hi,
I’m still writing my game though I still haven’t solved the last problem I encountered. Now I get a new one, when the window restores.
I can minimize the window, but when it restores, its client bounds becomes a WIDTH-by-2-pixels rectangle, where WIDTH
is the least possible width of a window’s client size. This issue cause severe problem when I use Game.AllowUserResizing = false
, since after the client size is changed, it can’t change back (to a normal size) as expected and just keeps the smallest size. In addition, I don’t know if there is a way to subscribe events like WindowStateChanged
.
So, is it again caused by improper OpenTK window message handling?
Edit: Sorry, after inspecting and debugging, I found multiple GraphicsDeviceManager.ApplyChanges()
calls during a frame update. These calls led to the issue reported. Sorry for the false issue. The framework is fine.