From 135149e2d3fb72c4994717039b191161c6bcc050 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 14 May 2013 10:46:43 +0200 Subject: [PATCH] Fixed build for eeschema. --- common/drawpanel_gal.cpp | 3 +++ common/view/view.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/drawpanel_gal.cpp b/common/drawpanel_gal.cpp index 0403d60dc6..4f97c941d5 100644 --- a/common/drawpanel_gal.cpp +++ b/common/drawpanel_gal.cpp @@ -153,6 +153,9 @@ void EDA_DRAW_PANEL_GAL::SwitchBackend( GalType aGalType, bool aUseShaders ) m_gal->SetScreenDPI( 106 ); // Display resolution setting m_gal->ComputeWorldScreenMatrix(); + if( m_painter ) + m_painter->SetGAL( m_gal ); + if( m_view ) { m_view->SetGAL( m_gal ); diff --git a/common/view/view.cpp b/common/view/view.cpp index 0b04449aac..834bce3048 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -205,9 +205,6 @@ void VIEW::SetGAL( GAL* aGal ) { m_gal = aGal; - if( m_painter ) - m_painter->SetGAL( m_gal ); - // clear group numbers, so everything is going to be recached if( m_useGroups ) clearGroupCache();