Fix chat input crash on 1.13d
Merge some stuff from Scrap
Add patched D2GFX to support multiwindow