@@ -286,7 +286,7 @@ class wxAmiiboDropTarget : public wxFileDropTarget
286286};
287287
288288MainWindow::MainWindow ()
289- : wxFrame(nullptr , - 1 , GetInitialWindowTitle(), wxDefaultPosition, wxSize(1280 , 720 ), wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN | wxRESIZE_BORDER)
289+ : wxFrame(nullptr , wxID_ANY , GetInitialWindowTitle(), wxDefaultPosition, wxSize(1280 , 720 ), wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN | wxRESIZE_BORDER)
290290{
291291 gui_initHandleContextFromWxWidgetsWindow (g_window_info.window_main , this );
292292 g_mainFrame = this ;
@@ -1859,7 +1859,7 @@ class CemuAboutDialog : public wxDialog
18591859 auto versionString = formatWxString (_ (" Cemu\n Version {0}\n Compiled on {1}\n Original authors: {2}" ), BUILD_VERSION_STRING, BUILD_DATE, " Exzap, Petergov" );
18601860
18611861 sizer->Add (new wxStaticText (parent, wxID_ANY, versionString), wxSizerFlags ().Border (wxALL, 3 ).Border (wxTOP, 10 ));
1862- sizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://cemu.info" , " https://cemu.info" ), wxSizerFlags ().Expand ().Border (wxTOP | wxBOTTOM, 3 ));
1862+ sizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://cemu.info" , " https://cemu.info" ), wxSizerFlags ().Expand ().Border (wxTOP | wxBOTTOM, 3 ));
18631863
18641864 sizer->AddSpacer (3 );
18651865 sizer->Add (new wxStaticLine (parent), wxSizerFlags ().Expand ().Border (wxRIGHT, 4 ));
@@ -1879,95 +1879,95 @@ class CemuAboutDialog : public wxDialog
18791879 // zLib
18801880 {
18811881 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1882- lineSizer->Add (new wxStaticText (parent, - 1 , " zLib (" ), 0 );
1883- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://www.zlib.net" , " https://www.zlib.net" ), 0 );
1884- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1882+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " zLib (" ), 0 );
1883+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://www.zlib.net" , " https://www.zlib.net" ), 0 );
1884+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
18851885 sizer->Add (lineSizer);
18861886 }
18871887 // wxWidgets
18881888 {
18891889 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1890- lineSizer->Add (new wxStaticText (parent, - 1 , " wxWidgets (" ), 0 );
1891- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://www.wxwidgets.org/" , " https://www.wxwidgets.org/" ), 0 );
1892- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1890+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " wxWidgets (" ), 0 );
1891+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://www.wxwidgets.org/" , " https://www.wxwidgets.org/" ), 0 );
1892+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
18931893 sizer->Add (lineSizer);
18941894 }
18951895 // OpenSSL
18961896 {
18971897 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1898- lineSizer->Add (new wxStaticText (parent, - 1 , " OpenSSL (" ), 0 );
1899- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://www.openssl.org/" , " https://www.openssl.org/" ), 0 );
1900- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1898+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " OpenSSL (" ), 0 );
1899+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://www.openssl.org/" , " https://www.openssl.org/" ), 0 );
1900+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19011901 sizer->Add (lineSizer);
19021902 }
19031903 // libcurl
19041904 {
19051905 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1906- lineSizer->Add (new wxStaticText (parent, - 1 , " libcurl (" ), 0 );
1907- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://curl.haxx.se/libcurl/" , " https://curl.haxx.se/libcurl/" ), 0 );
1908- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1906+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " libcurl (" ), 0 );
1907+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://curl.haxx.se/libcurl/" , " https://curl.haxx.se/libcurl/" ), 0 );
1908+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19091909 sizer->Add (lineSizer);
19101910 }
19111911 // imgui
19121912 {
19131913 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1914- lineSizer->Add (new wxStaticText (parent, - 1 , " imgui (" ), 0 );
1915- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://github.com/ocornut/imgui" , " https://github.com/ocornut/imgui" ), 0 );
1916- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1914+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " imgui (" ), 0 );
1915+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://github.com/ocornut/imgui" , " https://github.com/ocornut/imgui" ), 0 );
1916+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19171917 sizer->Add (lineSizer);
19181918 }
19191919 // fontawesome
19201920 {
19211921 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1922- lineSizer->Add (new wxStaticText (parent, - 1 , " fontawesome (" ), 0 );
1923- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://github.com/FortAwesome/Font-Awesome" , " https://github.com/FortAwesome/Font-Awesome" ), 0 );
1924- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1922+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " fontawesome (" ), 0 );
1923+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://github.com/FortAwesome/Font-Awesome" , " https://github.com/FortAwesome/Font-Awesome" ), 0 );
1924+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19251925 sizer->Add (lineSizer);
19261926 }
19271927 // boost
19281928 {
19291929 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1930- lineSizer->Add (new wxStaticText (parent, - 1 , " boost (" ), 0 );
1931- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://www.boost.org" , " https://www.boost.org" ), 0 );
1932- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1930+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " boost (" ), 0 );
1931+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://www.boost.org" , " https://www.boost.org" ), 0 );
1932+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19331933 sizer->Add (lineSizer);
19341934 }
19351935 // libusb
19361936 {
19371937 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1938- lineSizer->Add (new wxStaticText (parent, - 1 , " libusb (" ), 0 );
1939- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://libusb.info" , " https://libusb.info" ), 0 );
1940- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1938+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " libusb (" ), 0 );
1939+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://libusb.info" , " https://libusb.info" ), 0 );
1940+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19411941 sizer->Add (lineSizer);
19421942 }
19431943 // icons
19441944 {
19451945 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1946- lineSizer->Add (new wxStaticText (parent, - 1 , " icons from " ), 0 );
1947- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://icons8.com" , " https://icons8.com" ), 0 );
1946+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " icons from " ), 0 );
1947+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://icons8.com" , " https://icons8.com" ), 0 );
19481948 sizer->Add (lineSizer);
19491949 }
19501950 // Lato font (are we still using it?)
19511951 {
19521952 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1953- lineSizer->Add (new wxStaticText (parent, - 1 , " \" Lato\" font by tyPoland Lukasz Dziedzic (OFL, V1.1)" ), 0 );
1953+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " \" Lato\" font by tyPoland Lukasz Dziedzic (OFL, V1.1)" ), 0 );
19541954 sizer->Add (lineSizer);
19551955 }
19561956 // SDL
19571957 {
19581958 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1959- lineSizer->Add (new wxStaticText (parent, - 1 , " SDL (" ), 0 );
1960- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " https://github.com/libsdl-org/SDL" , " https://github.com/libsdl-org/SDL" ), 0 );
1961- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
1959+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " SDL (" ), 0 );
1960+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " https://github.com/libsdl-org/SDL" , " https://github.com/libsdl-org/SDL" ), 0 );
1961+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
19621962 sizer->Add (lineSizer);
19631963 }
19641964 // IH264
19651965 {
19661966 wxSizer* lineSizer = new wxBoxSizer (wxHORIZONTAL);
1967- lineSizer->Add (new wxStaticText (parent, - 1 , " Modified ih264 from Android project (" ), 0 );
1968- lineSizer->Add (new wxHyperlinkCtrl (parent, - 1 , " Source" , " https://cemu.info/oss/ih264d.zip" ), 0 );
1969- lineSizer->Add (new wxStaticText (parent, - 1 , " " ), 0 );
1970- wxHyperlinkCtrl* noticeLink = new wxHyperlinkCtrl (parent, - 1 , " NOTICE" , " " );
1967+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " Modified ih264 from Android project (" ), 0 );
1968+ lineSizer->Add (new wxHyperlinkCtrl (parent, wxID_ANY , " Source" , " https://cemu.info/oss/ih264d.zip" ), 0 );
1969+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " " ), 0 );
1970+ wxHyperlinkCtrl* noticeLink = new wxHyperlinkCtrl (parent, wxID_ANY , " NOTICE" , " " );
19711971 noticeLink->Bind (wxEVT_LEFT_DOWN, [](wxMouseEvent& event)
19721972 {
19731973 fs::path tempPath = fs::temp_directory_path ();
@@ -2001,7 +2001,7 @@ class CemuAboutDialog : public wxDialog
20012001 wxLaunchDefaultBrowser (wxHelper::FromUtf8 (fmt::format (" file:{}" , _pathToUtf8 (tempPath))));
20022002 });
20032003 lineSizer->Add (noticeLink, 0 );
2004- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
2004+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
20052005 sizer->Add (lineSizer);
20062006 }
20072007 }
0 commit comments