build: Fix building launcher on Debian

This commit is contained in:
Vsevolod Kremianskii 2021-03-10 03:48:59 -05:00
parent 7e51b976f1
commit ac8e2b47f0
2 changed files with 2 additions and 2 deletions

View file

@ -714,7 +714,7 @@ if(BUILD_LAUNCHER)
endif()
include(${wxWidgets_USE_FILE})
target_link_libraries(launcher ${wxWidgets_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY})
target_link_libraries(launcher ${wxWidgets_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY})
set_target_properties(launcher PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
else()

View file

@ -67,7 +67,7 @@ LauncherFrame::LauncherFrame() : wxFrame(nullptr, wxID_ANY, "reone", wxDefaultPo
wxArrayString resChoices;
set<string> uniqueRes;
wxArrayVideoModes modes(wxDisplay(this).GetModes());
wxArrayVideoModes modes(wxDisplay(wxDisplay::GetFromWindow(this)).GetModes());
for (size_t i = 0; i < modes.GetCount(); ++i) {
wxVideoMode mode = modes[i];
string res(str(boost::format("%dx%d") % mode.GetWidth() % mode.GetHeight()));