diff --git a/common/preview_items/ruler_item.cpp b/common/preview_items/ruler_item.cpp index 1ac150dba1..8d2dae0513 100644 --- a/common/preview_items/ruler_item.cpp +++ b/common/preview_items/ruler_item.cpp @@ -306,7 +306,7 @@ void RULER_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const RENDER_SETTINGS* rs = aView->GetPainter()->GetSettings(); bool drawingDropShadows = ( aLayer == getShadowLayer( gal ) ); - GAL_SCOPED_ATTRS scopedAttrs( *gal, GAL_SCOPED_ATTRS::ALL ); + GAL_SCOPED_ATTRS scopedAttrs( *gal, GAL_SCOPED_ATTRS::ALL_ATTRS ); gal->SetLayerDepth( gal->GetMinDepth() ); VECTOR2D origin = m_geomMgr.GetOrigin(); diff --git a/common/tool/edit_points.cpp b/common/tool/edit_points.cpp index 62c0c7e182..f7b94b8fcd 100644 --- a/common/tool/edit_points.cpp +++ b/common/tool/edit_points.cpp @@ -278,7 +278,7 @@ void EDIT_POINTS::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const highlightColor = drawColor.Brightened( 0.5 ).WithAlpha( 0.8 ); } - KIGFX::GAL_SCOPED_ATTRS scopedAttrs( *gal, KIGFX::GAL_SCOPED_ATTRS::ALL ); + KIGFX::GAL_SCOPED_ATTRS scopedAttrs( *gal, KIGFX::GAL_SCOPED_ATTRS::ALL_ATTRS ); gal->SetFillColor( drawColor ); gal->SetStrokeColor( borderColor ); gal->SetIsFill( true ); diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index d1a2fbaa1f..8d3ec16dd8 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -2283,7 +2283,7 @@ void SCH_PAINTER::draw( const SCH_SYMBOL* aSymbol, int aLayer ) VECTOR2I pt1 = bbox.GetOrigin(); VECTOR2I pt2 = bbox.GetEnd(); - GAL_SCOPED_ATTRS scopedAttrs( *m_gal, GAL_SCOPED_ATTRS::ALL ); + GAL_SCOPED_ATTRS scopedAttrs( *m_gal, GAL_SCOPED_ATTRS::ALL_ATTRS ); m_gal->AdvanceDepth(); m_gal->SetIsStroke( true ); m_gal->SetIsFill( true ); @@ -2757,7 +2757,7 @@ void SCH_PAINTER::draw( const SCH_SHEET* aSheet, int aLayer ) VECTOR2I pt1 = bbox.GetOrigin(); VECTOR2I pt2 = bbox.GetEnd(); - GAL_SCOPED_ATTRS scopedAttrs( *m_gal, GAL_SCOPED_ATTRS::ALL ); + GAL_SCOPED_ATTRS scopedAttrs( *m_gal, GAL_SCOPED_ATTRS::ALL_ATTRS ); m_gal->SetIsStroke( true ); m_gal->SetIsFill( true ); m_gal->SetStrokeColor( m_schSettings.GetLayerColor( layer ) ); diff --git a/include/gal/graphics_abstraction_layer.h b/include/gal/graphics_abstraction_layer.h index 85b934c249..92290e7de7 100644 --- a/include/gal/graphics_abstraction_layer.h +++ b/include/gal/graphics_abstraction_layer.h @@ -1189,7 +1189,7 @@ public: FILL = FILL_COLOR | IS_FILL, STROKE_FILL = STROKE | FILL, - ALL = STROKE | FILL | LAYER_DEPTH, + ALL_ATTRS = STROKE | FILL | LAYER_DEPTH, }; /**