From cd669aea71d3a0dfa35e88d0089041d430e4bd60 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 17 Oct 2017 20:32:29 +0200 Subject: [PATCH] Use GetContentScaleFactor() to obtain the scale of the back buffer GetContentScaleFactor() is implemented on all platforms and therefore can be used to obtain the proper scale not only under wxOSX. --- src/propgrid/propgrid.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 0b207b79f7..af037b9b44 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4650,12 +4650,7 @@ void wxPropertyGrid::OnResize( wxSizeEvent& event ) if ( !HasExtraStyle(wxPG_EX_NATIVE_DOUBLE_BUFFERING) ) { - // Scaled bitmaps only work on Mac currently -#ifdef __WXOSX_COCOA__ double scaleFactor = GetContentScaleFactor(); -#else - double scaleFactor = 1.0; -#endif int dblh = (m_lineHeight*2); if ( !m_doubleBuffer ) {