summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/hb-backend.c8
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;
}