@@ -286,7 +286,7 @@ class wxAmiiboDropTarget : public wxFileDropTarget
286
286
};
287
287
288
288
MainWindow::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)
290
290
{
291
291
gui_initHandleContextFromWxWidgetsWindow (g_window_info.window_main , this );
292
292
g_mainFrame = this ;
@@ -1859,7 +1859,7 @@ class CemuAboutDialog : public wxDialog
1859
1859
auto versionString = formatWxString (_ (" Cemu\n Version {0}\n Compiled on {1}\n Original authors: {2}" ), BUILD_VERSION_STRING, BUILD_DATE, " Exzap, Petergov" );
1860
1860
1861
1861
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 ));
1863
1863
1864
1864
sizer->AddSpacer (3 );
1865
1865
sizer->Add (new wxStaticLine (parent), wxSizerFlags ().Expand ().Border (wxRIGHT, 4 ));
@@ -1879,95 +1879,95 @@ class CemuAboutDialog : public wxDialog
1879
1879
// zLib
1880
1880
{
1881
1881
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 );
1885
1885
sizer->Add (lineSizer);
1886
1886
}
1887
1887
// wxWidgets
1888
1888
{
1889
1889
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 );
1893
1893
sizer->Add (lineSizer);
1894
1894
}
1895
1895
// OpenSSL
1896
1896
{
1897
1897
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 );
1901
1901
sizer->Add (lineSizer);
1902
1902
}
1903
1903
// libcurl
1904
1904
{
1905
1905
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 );
1909
1909
sizer->Add (lineSizer);
1910
1910
}
1911
1911
// imgui
1912
1912
{
1913
1913
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 );
1917
1917
sizer->Add (lineSizer);
1918
1918
}
1919
1919
// fontawesome
1920
1920
{
1921
1921
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 );
1925
1925
sizer->Add (lineSizer);
1926
1926
}
1927
1927
// boost
1928
1928
{
1929
1929
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 );
1933
1933
sizer->Add (lineSizer);
1934
1934
}
1935
1935
// libusb
1936
1936
{
1937
1937
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 );
1941
1941
sizer->Add (lineSizer);
1942
1942
}
1943
1943
// icons
1944
1944
{
1945
1945
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 );
1948
1948
sizer->Add (lineSizer);
1949
1949
}
1950
1950
// Lato font (are we still using it?)
1951
1951
{
1952
1952
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 );
1954
1954
sizer->Add (lineSizer);
1955
1955
}
1956
1956
// SDL
1957
1957
{
1958
1958
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 );
1962
1962
sizer->Add (lineSizer);
1963
1963
}
1964
1964
// IH264
1965
1965
{
1966
1966
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" , " " );
1971
1971
noticeLink->Bind (wxEVT_LEFT_DOWN, [](wxMouseEvent& event)
1972
1972
{
1973
1973
fs::path tempPath = fs::temp_directory_path ();
@@ -2001,7 +2001,7 @@ class CemuAboutDialog : public wxDialog
2001
2001
wxLaunchDefaultBrowser (wxHelper::FromUtf8 (fmt::format (" file:{}" , _pathToUtf8 (tempPath))));
2002
2002
});
2003
2003
lineSizer->Add (noticeLink, 0 );
2004
- lineSizer->Add (new wxStaticText (parent, - 1 , " )" ), 0 );
2004
+ lineSizer->Add (new wxStaticText (parent, wxID_ANY , " )" ), 0 );
2005
2005
sizer->Add (lineSizer);
2006
2006
}
2007
2007
}
0 commit comments