Alexandre Julliard : winex11: Add a helper function to get a pixel format index.