Quick fix for the window resize crash.

The game should no longer crash at small window sizes, and the
window's minimum size is now set.