From 8e006976a8acbaea5567a412de0277e32d28e210 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Thu, 28 Oct 2010 16:39:35 +0300 Subject: [PATCH] info: improve resolution Orint it as "w x h" and add idea to convert to human readable string --- mediainfo/src/mi-info.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala index ea7de55719..82073cd904 100644 --- a/mediainfo/src/mi-info.vala +++ b/mediainfo/src/mi-info.vala @@ -208,10 +208,11 @@ public class MediaInfo.Info : VBox table.attach (label, 1, 2, row, row+1, fill_exp, 0, 3, 1); row++; - label = new Label ("Width/Height:"); + // TODO: add named resolutions: (640x480=VGA) + label = new Label ("Resolution:"); label.set_alignment (1.0f, 0.5f); table.attach (label, 0, 1, row, row+1, fill, 0, 0, 0); - str = "%u / %u".printf (((DiscovererVideoInfo)sinfo).get_width(),((DiscovererVideoInfo)sinfo).get_height()); + str = "%u x %u".printf (((DiscovererVideoInfo)sinfo).get_width(),((DiscovererVideoInfo)sinfo).get_height()); label = new Label (str); label.set_alignment (0.0f, 0.5f); table.attach (label, 1, 2, row, row+1, fill_exp, 0, 3, 1);