diff options
author | John Stebbins <[email protected]> | 2017-12-22 15:49:22 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-12-22 15:49:22 -0800 |
commit | de8ef67f36b364950fce3e951a5349556fd8642c (patch) | |
tree | 5888d5f99e539d9cb1810a655ba4dc8930c64d5d /gtk/src/hb-backend.c | |
parent | 0987f343ad89464d803d1adc2e4ed1ea59fd5436 (diff) |
LinGui: improve display aspect formatting
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 310db858e..f4c79c3e3 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3801,19 +3801,19 @@ ghb_get_display_aspect_string(int disp_width, int disp_height) gint iaspect = dar_width * 9 / dar_height; if (dar_width > 2 * dar_height) { - str = g_strdup_printf("%.2f : 1", (gdouble)dar_width / dar_height); + str = g_strdup_printf("%.2f:1", (gdouble)dar_width / dar_height); } else if (iaspect <= 16 && iaspect >= 15) { - str = g_strdup_printf("%.2f : 9", (gdouble)dar_width * 9 / dar_height); + str = g_strdup_printf("%.4g:9", (gdouble)dar_width * 9 / dar_height); } else if (iaspect <= 12 && iaspect >= 11) { - str = g_strdup_printf("%.2f : 3", (gdouble)dar_width * 3 / dar_height); + str = g_strdup_printf("%.4g:3", (gdouble)dar_width * 3 / dar_height); } else { - str = g_strdup_printf("%d : %d", dar_width, dar_height); + str = g_strdup_printf("%d:%d", dar_width, dar_height); } return str; } |