fixed lost d3d device when resizing video window, added basic video ui controls