Browse Source

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
pull/15/head
John Beard 7 years ago
parent
commit
33fe9a2761
  1. 7
      eeschema/widgets/symbol_preview_widget.cpp

7
eeschema/widgets/symbol_preview_widget.cpp

@ -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 )
{
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;

Loading…
Cancel
Save