two changes: allow multi-line titles; round to nearest pixel when placing the dialog to prevent blurriness