[longomatch/livecapturemerged: 84/84] Use real PAL values and add the "Keep original size" option
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/livecapturemerged: 84/84] Use real PAL values and add the "Keep original size" option
- Date: Tue, 11 May 2010 00:55:03 +0000 (UTC)
commit 44b9b974a3189061ee108458dd42398d33105dff
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue May 11 02:51:08 2010 +0200
Use real PAL values and add the "Keep original size" option
LongoMatch/Gui/Component/ProjectDetailsWidget.cs | 27 +++++++++++++---------
1 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
index 6180925..cae73fd 100644
--- a/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
+++ b/LongoMatch/Gui/Component/ProjectDetailsWidget.cs
@@ -52,9 +52,9 @@ namespace LongoMatch.Gui.Component
private TeamTemplate actualVisitorTeam;
private TeamTemplate actualLocalTeam;
private ProjectType useType;
- private const string PAL_FORMAT = "640x480 (4:3)";
- private const string PAL_3_4_FORMAT = "480x360 (4:3)";
- private const string PAL_1_2_FORMAT = "320x240 (4:3)";
+ private const string PAL_FORMAT = "720x576 (4:3)";
+ private const string PAL_3_4_FORMAT = "540x432 (4:3)";
+ private const string PAL_1_2_FORMAT = "360x288 (4:3)";
private const string AVI = "AVI (XVID + MP3)";
private const string MP4 = "MP4 (H264 + AAC)";
private const string OGG = "OGG (Theora + Vorbis)";
@@ -257,16 +257,20 @@ namespace LongoMatch.Gui.Component
switch (sizecombobox.ActiveText){
/* FIXME: Don't harcode size values */
case PAL_FORMAT:
- s.Width = 640;
- s.Height = 480;
+ s.Width = 720;
+ s.Height = 576;
+ break;
+ case PAL_3_4_FORMAT:
+ s.Width = 540;
+ s.Height = 432;
break;
case PAL_1_2_FORMAT:
- s.Width = 480;
- s.Height = 320;
+ s.Width = 360;
+ s.Height = 288;
break;
- case PAL_3_4_FORMAT:
- s.Width = 320;
- s.Height = 240;
+ default:
+ s.Width = 0;
+ s.Height = 0;
break;
}
switch (videoformatcombobox.ActiveText){
@@ -411,6 +415,7 @@ namespace LongoMatch.Gui.Component
}
private void FillFormats(){
+ sizecombobox.AppendText (Catalog.GetString("Keep original size"));
sizecombobox.AppendText(PAL_FORMAT);
sizecombobox.AppendText(PAL_3_4_FORMAT);
sizecombobox.AppendText(PAL_1_2_FORMAT);
@@ -419,7 +424,7 @@ namespace LongoMatch.Gui.Component
videoformatcombobox.AppendText(OGG);
videoformatcombobox.AppendText(MP4);
videoformatcombobox.AppendText(AVI);
- videoformatcombobox.Active = 0;
+ videoformatcombobox.Active = 1;
}
protected virtual void OnDateSelected(DateTime dateTime) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]