gdi32: Add a helper function to determine anti-aliasing flags.