Fix d3d fullscreen problems