From 5050e149e5d91bf768c5784523ee0a9e1a9e6a2b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 22 Sep 2013 07:30:27 +0000 Subject: [PATCH] tweak mpeg --- Common/CreateFile.cpp | 8 ++++---- Common/CreateFile.h | 2 +- Common/DefaultOptions.h | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Common/CreateFile.cpp b/Common/CreateFile.cpp index 88e2c788f5..f7b943f13d 100644 --- a/Common/CreateFile.cpp +++ b/Common/CreateFile.cpp @@ -222,7 +222,7 @@ static void change_print_parameter(int frame) ParseString(CTX::instance()->print.parameterCommand); } -void CreateOutputFile(const std::string &fileName, int format, bool redraw) +void CreateOutputFile(const std::string &fileName, int format, bool status) { std::string name = fileName; if(name.empty()) name = GetDefaultFileName(format); @@ -232,7 +232,7 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) CTX::instance()->printing = 1; bool error = false; - if(redraw) + if(status) Msg::StatusBar(true, "Writing '%s'...", name.c_str()); switch (format) { @@ -625,10 +625,10 @@ void CreateOutputFile(const std::string &fileName, int format, bool redraw) CTX::instance()->print.fileFormat = oldFormat; CTX::instance()->printing = 0; - if(redraw && !error) + if(status && !error) Msg::StatusBar(true, "Done writing '%s'", name.c_str()); #if defined(HAVE_OPENGL) - if(redraw) drawContext::global()->draw(); + drawContext::global()->draw(); #endif } diff --git a/Common/CreateFile.h b/Common/CreateFile.h index df878cc10a..15cf0a5572 100644 --- a/Common/CreateFile.h +++ b/Common/CreateFile.h @@ -11,6 +11,6 @@ int GetFileFormatFromExtension(const std::string &fileName); int GuessFileFormatFromFileName(const std::string &fileName); std::string GetDefaultFileName(int format); -void CreateOutputFile(const std::string &fileName, int format, bool redraw=true); +void CreateOutputFile(const std::string &fileName, int format, bool status=true); #endif diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index f2f29a2e30..fb60147fbb 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -267,7 +267,8 @@ StringXString ViewOptions_String[] = { StringXString PrintOptions_String[] = { { F|O, "ParameterCommand" , opt_print_parameter_command , - "View.Clip=1; General.Clip0D=Print.Parameter;" , + "Mesh.Clip=1; View.Clip=1; General.ClipWholeElements=1; " + "General.Clip0D=Print.Parameter; SetChanged;" , "Command parsed when the print parameter is changed" }, { 0, 0 , 0 , "" , 0 } -- GitLab