[PATCH 2/9] d3d9: Introduce helpers to convert between d3d9 and wined3d scanline ordering types.