Roderick Colenbrander : wined3d: Introduce a helper function which converts a color from the surface format to ARGB .