From e71b215963b7f64230180afeaefa290e1313dffa Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 19 Feb 2019 16:17:13 -0700 Subject: [PATCH] Restore 3D canvas to full size on Retina displays. --- 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp index 264b4b2d91..eb9f096427 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp @@ -359,7 +359,7 @@ void EDA_3D_CANVAS::OnPaint( wxPaintEvent &event ) // multiple canvases: If we updated the viewport in the wxSizeEvent // handler, changing the size of one canvas causes a viewport setting that // is wrong when next another canvas is repainted. - wxSize clientSize = GetClientSize(); + wxSize clientSize = GetNativePixelSize(); const bool windows_size_changed = m_settings.CameraGet().SetCurWindowSize( clientSize ); @@ -576,7 +576,7 @@ void EDA_3D_CANVAS::OnMouseMove( wxMouseEvent &event ) if( m_camera_is_moving ) return; - m_settings.CameraGet().SetCurWindowSize( GetClientSize() ); + m_settings.CameraGet().SetCurWindowSize( GetNativePixelSize() ); if( event.Dragging() ) {