PCB_DRAW_PANEL_GAL: Use TARGET_OVERLAY for LAYER_CONFLICTS_SHADOW.

This is a better option than TARGET_NON_CACHED, and giving better look.
This commit is contained in:
jean-pierre charras
2024-09-09 17:07:28 +02:00
parent f0b92b0c5d
commit a4e6c2cfe7
+3 -1
View File
@@ -677,7 +677,9 @@ void PCB_DRAW_PANEL_GAL::setDefaultLayerDeps()
m_view->SetLayerTarget( LAYER_ANCHOR, KIGFX::TARGET_NONCACHED );
m_view->SetLayerDisplayOnly( LAYER_ANCHOR );
m_view->SetLayerTarget( LAYER_CONFLICTS_SHADOW, KIGFX::TARGET_NONCACHED );
// Use TARGET_OVERLAY for LAYER_CONFLICTS_SHADOW, it is for items
// that may change while the view stays the same.
m_view->SetLayerTarget( LAYER_CONFLICTS_SHADOW, KIGFX::TARGET_OVERLAY );
m_view->SetLayerDisplayOnly( LAYER_LOCKED_ITEM_SHADOW );
m_view->SetLayerDisplayOnly( LAYER_CONFLICTS_SHADOW );