d3d8: Moved the remaining code over to WineD3D (based on patches by