d3d9/tests: Do not assume surface size and format in get_pixel_color().