Skip to content
Snippets Groups Projects
Commit a136cff7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

color warnings != from errors

parent 7949689a
No related branches found
No related tags found
No related merge requests found
...@@ -232,7 +232,7 @@ void Msg::Warning(const char *fmt, ...) ...@@ -232,7 +232,7 @@ void Msg::Warning(const char *fmt, ...)
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
if(FlGui::available()){ if(FlGui::available()){
FlGui::instance()->check(); FlGui::instance()->check();
std::string tmp = std::string("@C1@.") + "Warning : " + str; std::string tmp = std::string("@C5@.") + "Warning : " + str;
FlGui::instance()->addMessage(tmp.c_str()); FlGui::instance()->addMessage(tmp.c_str());
} }
#endif #endif
...@@ -300,8 +300,10 @@ void Msg::Direct(int level, const char *fmt, ...) ...@@ -300,8 +300,10 @@ void Msg::Direct(int level, const char *fmt, ...)
if(FlGui::available()){ if(FlGui::available()){
FlGui::instance()->check(); FlGui::instance()->check();
std::string tmp; std::string tmp;
if(level < 3) if(level < 2)
tmp = std::string("@C1@.") + str; tmp = std::string("@C1@.") + str;
else if(level < 3)
tmp = std::string("@C5@.") + str;
else else
tmp = std::string("@C4@.") + str; tmp = std::string("@C4@.") + str;
FlGui::instance()->addMessage(tmp.c_str()); FlGui::instance()->addMessage(tmp.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment