diff --git a/common/legacy_gal/eda_draw_frame.cpp b/common/legacy_gal/eda_draw_frame.cpp index 49b6637ad7..978d9c68e4 100644 --- a/common/legacy_gal/eda_draw_frame.cpp +++ b/common/legacy_gal/eda_draw_frame.cpp @@ -1085,10 +1085,11 @@ EDA_DRAW_PANEL_GAL::GAL_TYPE EDA_DRAW_FRAME::LoadCanvasTypeSetting() } // Coerce the value into a GAL type when Legacy is not available + // Default to Cairo, and on the first, user will be prompted for OpenGL if( canvasType == EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE && !ADVANCED_CFG::GetCfg().AllowLegacyCanvas() ) { - canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL; + canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_CAIRO; } return canvasType; diff --git a/common/legacy_wx/eda_draw_frame.cpp b/common/legacy_wx/eda_draw_frame.cpp index b34600e1d2..b315977096 100644 --- a/common/legacy_wx/eda_draw_frame.cpp +++ b/common/legacy_wx/eda_draw_frame.cpp @@ -1331,10 +1331,11 @@ EDA_DRAW_PANEL_GAL::GAL_TYPE EDA_DRAW_FRAME::LoadCanvasTypeSetting() } // Coerce the value into a GAL type when Legacy is not available + // Default to Cairo, and on the first, user will be prompted for OpenGL if( canvasType == EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE && !ADVANCED_CFG::GetCfg().AllowLegacyCanvas() ) { - canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL; + canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_CAIRO; } return canvasType; diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index cb5344b2db..7d3b6c6afc 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -317,7 +317,7 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : EDA_DRAW_PANEL_GAL* galCanvas = new PCB_DRAW_PANEL_GAL( this, -1, wxPoint( 0, 0 ), m_FrameSize, GetGalDisplayOptions(), - EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE ); + EDA_DRAW_PANEL_GAL::GAL_TYPE_CAIRO ); SetGalCanvas( galCanvas ); @@ -425,9 +425,10 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : GetEventHandler()->ProcessEvent( cairoEvt ); } } - else if( canvasType == EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE ) + else { - // If they were on legacy, switch them to Cairo + // If they were on legacy, or they've been coerced into GAL + // due to unavailable legacy (GTK3), switch to Cairo wxCommandEvent evt( wxEVT_MENU, ID_MENU_CANVAS_CAIRO ); GetEventHandler()->ProcessEvent( evt ); }