]> granicus.if.org Git - handbrake/commitdiff
LinGui: improve display aspect formatting
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 22 Dec 2017 23:49:22 +0000 (15:49 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 22 Dec 2017 23:49:22 +0000 (15:49 -0800)
gtk/src/hb-backend.c

index 310db858e234f7c4ff3f74e889f8e8d51ffe2f92..f4c79c3e302fda840618003f197749fca0ce6061 100644 (file)
@@ -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;
 }