Only use scaled content factor for bitmaps on Mac
This commit is contained in:
parent
a797c9d956
commit
76190de960
2 changed files with 8 additions and 0 deletions
|
|
@ -4660,7 +4660,12 @@ 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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12681,8 +12681,11 @@ bool wxRichTextImage::LoadAndScaleImageCache(wxImage& image, const wxSize& sz, w
|
|||
else
|
||||
{
|
||||
double scaleFactor = 1.0;
|
||||
// Scaled bitmaps only work on Mac currently
|
||||
#ifdef __WXOSX_COCOA__
|
||||
if (context.GetBuffer() && context.GetBuffer()->GetRichTextCtrl())
|
||||
scaleFactor = context.GetBuffer()->GetRichTextCtrl()->GetContentScaleFactor();
|
||||
#endif
|
||||
|
||||
// If the original width and height is small, e.g. 400 or below,
|
||||
// scale up and then down to improve image quality. This can make
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue