[vlmc-devel] commit: ProjectManager: Don't allow a resolution smaller than 32x32 ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Sun Dec 5 21:29:12 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec  5 18:59:49 2010 +0100| [ca74a94ff20a037e9d5c7cc797ecabe3e132129b] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Don't allow a resolution smaller than 32x32

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ca74a94ff20a037e9d5c7cc797ecabe3e132129b
---

 src/Project/ProjectManager.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 3a4ed09..0934c3a 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -55,12 +55,12 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Video width" ),
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Width resolution of the output video" ),
                              SettingValue::Flags( SettingValue::Clamped | SettingValue::EightMultiple ) );
-    width->setLimits( 0, 2048 );
+    width->setLimits( 32, 2048 );
     SettingValue    *height = VLMC_CREATE_PROJECT_VAR( SettingValue::Int, "video/VideoProjectHeight", 320,
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Video height" ),
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Height resolution of the output video" ),
                              SettingValue::Flag( SettingValue::Clamped | SettingValue::EightMultiple ) );
-    height->setLimits( 0, 2048 );
+    height->setLimits( 32, 2048 );
     VLMC_CREATE_PROJECT_STRING( "video/AspectRatio", "16/9",
                                 QT_TRANSLATE_NOOP("PreferenceWidget", "Video aspect ratio" ),
                                 QT_TRANSLATE_NOOP("PreferenceWidget", "The rendered video aspect ratio" ) );



More information about the Vlmc-devel mailing list