[PATCH v3 1/2] gdi32: Move the scan conversion to a helper function.