WX: Various fixes.

Dolphin no longer lowers itself below the top window when opening.
Dolphin no longer draws garbage lines all over the game list.

Use the correct platform macros so Dolphin can actually find the
translation catalogs on Unix.
This commit is contained in:
EmptyChaos 2016-08-03 14:36:32 +00:00
parent def0b42fb7
commit 50756d69c0
4 changed files with 14 additions and 5 deletions

View File

@ -1273,7 +1273,9 @@
<ClCompile Include="..\..\src\msw\printwin.cpp">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\msw\progdlg.cpp" />
<ClCompile Include="..\..\src\msw\progdlg.cpp">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\msw\radiobox.cpp" />
<ClCompile Include="..\..\src\msw\radiobut.cpp" />
<ClCompile Include="..\..\src\msw\regconf.cpp" />

View File

@ -1209,7 +1209,7 @@
// Set to 0 to disable the use of the native progress dialog (currently only
// available under MSW and suffering from some bugs there, hence this option).
#define wxUSE_NATIVE_PROGRESSDLG 1
#define wxUSE_NATIVE_PROGRESSDLG 0
// support for startup tips (wxShowTip &c)
#define wxUSE_STARTUP_TIPS 1

View File

@ -173,6 +173,13 @@ CGameListCtrl::CGameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoin
Bind(wxEVT_MENU, &CGameListCtrl::OnChangeDisc, this, IDM_LIST_CHANGE_DISC);
wxTheApp->Bind(DOLPHIN_EVT_LOCAL_INI_CHANGED, &CGameListCtrl::OnLocalIniModified, this);
#ifdef _WIN32
// Default Windows Themes (Aero, Win10) draw column separators which do not appear when
// using the default unthemed appearance. This is a new behavior in wx3.1 since wx3.0
// and lower did not support themes at all.
EnableSystemTheme(false);
#endif
}
CGameListCtrl::~CGameListCtrl()

View File

@ -307,11 +307,11 @@ void DolphinApp::InitLanguageSupport()
m_locale.reset(new wxLocale(language));
// Specify where dolphins *.gmo files are located on each operating system
#ifdef _WIN32
#ifdef __WXMSW__
m_locale->AddCatalogLookupPathPrefix(StrToWxStr(File::GetExeDirectory() + DIR_SEP "Languages"));
#elif defined(__LINUX__)
#elif defined(__WXGTK__)
m_locale->AddCatalogLookupPathPrefix(StrToWxStr(DATA_DIR "../locale"));
#elif defined(__APPLE__)
#elif defined(__WXOSX__)
m_locale->AddCatalogLookupPathPrefix(
StrToWxStr(File::GetBundleDirectory() + "Contents/Resources"));
#endif