X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57f4f9255e3d70e219e6eabd68c3990c0f471f81..bdebb379299aaf1ee588dbe15968829df49ccedc:/src/msw/settings.cpp diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 32059690a7..af0dfa0adb 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -260,7 +260,7 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) return *gs_fontDefault; #else // !__WXWINCE__ - // wxWindow ctor calls GetSystemFont(wxSYS_DEFAULT_GUI_FONT) so we're + // wxWindow ctor calls GetFont(wxSYS_DEFAULT_GUI_FONT) so we're // called fairly often -- this is why we cache this particular font const bool isDefaultRequested = index == wxSYS_DEFAULT_GUI_FONT; if ( isDefaultRequested ) @@ -377,7 +377,7 @@ static const int gs_metricsMap[] = }; // Get a system metric, e.g. scrollbar size -int wxSystemSettingsNative::GetMetric(wxSystemMetric index) +int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win)) { #ifdef __WXMICROWIN__ // TODO: probably use wxUniv themes functionality @@ -390,7 +390,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) if ( indexMSW == -1 ) { // not supported under current system - return 0; + return -1; } int rc = ::GetSystemMetrics(indexMSW); @@ -438,7 +438,7 @@ extern wxFont wxGetCCDefaultFont() { case wxWIN95: // 4.10 is Win98 - useIconFont = verMin == 4 && verMin >= 10; + useIconFont = verMaj == 4 && verMin >= 10; break; case wxWINDOWS_NT: