From 3cc653b6fff93b83aea00445919949c275edf0b3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 31 May 2024 15:46:01 +0100 Subject: [PATCH] Revert DPI-change fix. (Jon has a better one coming.) --- pcbnew/dialogs/dialog_footprint_chooser.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pcbnew/dialogs/dialog_footprint_chooser.cpp b/pcbnew/dialogs/dialog_footprint_chooser.cpp index 7833770218..05793b3aba 100644 --- a/pcbnew/dialogs/dialog_footprint_chooser.cpp +++ b/pcbnew/dialogs/dialog_footprint_chooser.cpp @@ -135,20 +135,6 @@ DIALOG_FOOTPRINT_CHOOSER::DIALOG_FOOTPRINT_CHOOSER( PCB_BASE_FRAME* aParent, wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpViewReq ), nullptr, this ); - Bind( wxEVT_MOVE, - [this]( wxMoveEvent& aEvent ) - { - COMMON_SETTINGS* settings = Pgm().GetCommonSettings(); - const DPI_SCALING_COMMON dpi( settings, this ); - - if( m_preview3DCanvas->GetScaleFactor() != dpi.GetScaleFactor() ) - { - m_preview3DCanvas->SetScaleFactor( dpi.GetScaleFactor() ); - m_preview3DCanvas->ReloadRequest(); - m_preview3DCanvas->Refresh(); - } - } ); - Connect( FP_SELECTION_EVENT, wxCommandEventHandler( DIALOG_FOOTPRINT_CHOOSER::onFpChanged ), nullptr, this ); }