[PATCH v2 4/6] d3dx9: Add support for saving BMP files in d3dx_save_pixels_to_memory().