[PATCH 04/10] ddraw: Introduce a helper to convert ddraw primitive types to wined3d types.