Compare commits

..

No commits in common. "e6e259ac9eeaf54a5f6e1486a328faab06e3bc69" and "7d94161653a38d5dbca80a24017f29da7d807a11" have entirely different histories.

6 changed files with 17 additions and 18 deletions

View File

@ -181,12 +181,13 @@ target_compile_definitions(${APP_NAME} PRIVATE
BOOST_ATOMIC_DYN_LINK
BOOST_CHRONO_DYN_LINK
BOOST_FILESYSTEM_DYN_LINK
BOOST_LIB_DIAGNOSTIC
BOOST_LOG_DYN_LINK
BOOST_REGEX_DYN_LINK
BOOST_THREAD_DYN_LINK
BOOST_ALL_NO_LIB
BOOST_LIB_DIAGNOSTIC
BOOST_USE_WINAPI_VERSION=0x0600)
BOOST_USE_WINAPI_VERSION=0x0602)
target_link_libraries(${APP_NAME} PRIVATE ${Boost_LIBRARIES})
find_package(wxWidgets REQUIRED COMPONENTS base core xrc qa)

View File

@ -1,7 +1,7 @@
#!/bin/sh
echo "::group::configure kinetic"
sudo add-apt-repository "deb http://mirror.math.princeton.edu/pub/ubuntu lunar main universe"
sudo add-apt-repository "deb http://mirror.math.princeton.edu/pub/ubuntu kinetic main universe"
echo "::endgroup::"
echo "::group::install dependencies"

View File

@ -36,17 +36,15 @@
#include <wx/stdpaths.h>
#include <wx/debugrpt.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_feature.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/expressions/formatters/date_time.hpp>
#include <boost/log/expressions/formatters/stream.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/support/date_time.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <iostream>
#include <string>
@ -359,15 +357,14 @@ 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 <<
boost::log::expressions::format_date_time<boost::posix_time::ptime>("TimeStamp", "%Y-%m-%dT%H:%M:%S.%fZ") << " " <<
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 <<
to_iso_extended_string(boost::posix_time::microsec_clock::universal_time()) << "Z " <<
boost::log::trivial::severity << " " <<
boost::log::expressions::message
));
boost::log::add_common_attributes();
}

View File

@ -23,6 +23,8 @@
#include <SDL_keycode.h>
#include <wx/defs.h>
#include <wx/app.h>
#include <wx/event.h>

View File

@ -18,7 +18,6 @@
*/
#include "gui.h"
#include <SDL.h>
#include <wx/app.h>
#include <cstdio>

View File

@ -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) {