diff --git a/src/E2wxApp.cpp b/src/E2wxApp.cpp index 2ad871e..75c4e2b 100644 --- a/src/E2wxApp.cpp +++ b/src/E2wxApp.cpp @@ -36,15 +36,17 @@ #include #include +#include #include #include #include #include #include #include +#include #include #include -#include +#include #include #include @@ -357,14 +359,15 @@ void E2wxApp::InitBoostLog() { boost::log::add_file_log( - boost::log::keywords::file_name = this->logfile, - boost::log::keywords::auto_flush = true, - boost::log::keywords::format = ( - boost::log::expressions::stream << - to_iso_extended_string(boost::posix_time::microsec_clock::universal_time()) << "Z " << - boost::log::trivial::severity << " " << - boost::log::expressions::message - )); + boost::log::keywords::file_name = this->logfile, + boost::log::keywords::auto_flush = true, + boost::log::keywords::format = ( + boost::log::expressions::stream << + boost::log::expressions::format_date_time("TimeStamp", "%Y-%m-%dT%H:%M:%S.%fZ") << " " << + boost::log::trivial::severity << " " << + boost::log::expressions::message + ) + ); boost::log::add_common_attributes(); } diff --git a/src/screenimage.cpp b/src/screenimage.cpp index 664f20a..f481240 100644 --- a/src/screenimage.cpp +++ b/src/screenimage.cpp @@ -92,9 +92,9 @@ ScreenImage::~ScreenImage() { void ScreenImage::OnIdle(wxIdleEvent &evt) { - if (!this->FindFocus() || !this->sdl->HasFocus()) { - this->sdl->SetFocus(); - } +// if (!this->FindFocus() || !this->sdl->HasFocus()) { +// this->sdl->SetFocus(); +// } } void ScreenImage::HandleUserCloseWindowRequest(wxCloseEvent& event) {