mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
X11Utils: Don't depend on wx
We want to have two build targets: Main and MainNoGUI, and this code will be linked against in both cases, so the ifdef isn't enough for this case. Just append to a vector of strings, and then convert it after the fact.
This commit is contained in:
parent
601a406e95
commit
2b8a476a05
3 changed files with 6 additions and 9 deletions
|
@ -175,7 +175,10 @@ static wxArrayString GetListOfResolutions()
|
|||
ZeroMemory(&dmi, sizeof(dmi));
|
||||
}
|
||||
#elif defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
main_frame->m_XRRConfig->AddResolutions(retlist);
|
||||
std::vector<std::string> resos;
|
||||
main_frame->m_XRRConfig->AddResolutions(resos);
|
||||
for (auto res : resos)
|
||||
retlist.Add(StrToWxStr(res));
|
||||
#elif defined(__APPLE__)
|
||||
CFArrayRef modes = CGDisplayCopyAllDisplayModes(CGMainDisplayID(), nullptr);
|
||||
for (CFIndex i = 0; i < CFArrayGetCount(modes); i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue