Skip to content

Commit

Permalink
Revert Github commit of MacOS testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Nov 30, 2021
1 parent 932027a commit 56ccda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/metro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ wxMetroThemeProvider::~wxMetroThemeProvider() {
}

wxFont wxMetroThemeProvider::Font(int style, int size) {
// wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
wxFont font(wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT));
wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));

if (size > 1)
font.SetPointSize(size);
Expand All @@ -92,8 +91,6 @@ wxFont wxMetroThemeProvider::Font(int style, int size) {
if (wxFontEnumerator::IsValidFacename(face))
font.SetFaceName(face);
#else
// font.SetFamily(wxFONTFAMILY_MODERN);

if (style == wxMT_SEMIBOLD)
font.SetWeight(wxFONTWEIGHT_BOLD);
#endif
Expand Down
9 changes: 3 additions & 6 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,14 +986,11 @@ double wxGetScreenHDScale() {

void wxDevicePPIToScale(const wxSize &ppi, double *xs, double *ys) {
// don't try to scale on linux...
//#ifdef __WXGTK__
// *xs = *ys = 1.0;
//#else
#if defined(__WXMSW__)
#ifdef __WXGTK__
*xs = *ys = 1.0;
#else
*xs = ppi.x / DPI_NOMINAL;
*ys = ppi.y / DPI_NOMINAL;
#else
*xs = *ys = 1.0;
#endif
}

Expand Down

0 comments on commit 56ccda7

Please sign in to comment.