Modals: fixed an assert displaying a modal in an environment where io.DisplayFramebufferScale is not an integer. (#9598)