Fixes the type of alpha for get_blit_function().