constraints: Fix up aspect ratio math for frame rect conversion