Eeschema: Symbol preview widget needs common config for Hi-DPI
Currently, this widget doesn't read the common library settings. This means it doesn't use the configured DPI scaling or anti-aliasing settings. Use the ReadConfig method on the GAL options to fix (rather than only ReadAppConfig). Fixes: lp:1825913 * https://bugs.launchpad.net/kicad/+bug/1825913
This commit is contained in:
parent
df228a3c10
commit
33fe9a2761
|
@ -38,8 +38,11 @@ SYMBOL_PREVIEW_WIDGET::SYMBOL_PREVIEW_WIDGET( wxWindow* aParent, KIWAY& aKiway,
|
||||||
m_preview( nullptr ), m_status( nullptr ), m_statusSizer( nullptr ), m_previewItem( nullptr )
|
m_preview( nullptr ), m_status( nullptr ), m_statusSizer( nullptr ), m_previewItem( nullptr )
|
||||||
{
|
{
|
||||||
wxString eeschemaFrameKey( SCH_EDIT_FRAME_NAME );
|
wxString eeschemaFrameKey( SCH_EDIT_FRAME_NAME );
|
||||||
auto eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() );
|
|
||||||
m_galDisplayOptions.ReadAppConfig( *eeschemaConfig, eeschemaFrameKey );
|
std::unique_ptr<wxConfigBase> eeschemaConfig = GetNewConfig( Pgm().App().GetAppName() );
|
||||||
|
wxConfigBase& commonConfig = *Pgm().CommonSettings();
|
||||||
|
|
||||||
|
m_galDisplayOptions.ReadConfig( commonConfig, *eeschemaConfig, eeschemaFrameKey, this );
|
||||||
|
|
||||||
EDA_DRAW_PANEL_GAL::GAL_TYPE canvasType = aCanvasType;
|
EDA_DRAW_PANEL_GAL::GAL_TYPE canvasType = aCanvasType;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue