Browse Source

VIEW_OVERLAY: enforce always on top behaviour through Z ordering

7.0
Tomasz Wlostowski 4 years ago
parent
commit
7e8f14e738
  1. 6
      common/view/view_overlay.cpp

6
common/view/view_overlay.cpp

@ -299,8 +299,14 @@ const BOX2I VIEW_OVERLAY::ViewBBox() const
void VIEW_OVERLAY::ViewDraw( int aLayer, VIEW* aView ) const
{
auto gal = aView->GetGAL();
gal->PushDepth();
gal->SetLayerDepth( gal->GetMinDepth() );
for( const VIEW_OVERLAY::COMMAND* cmd : m_commands )
cmd->Execute( aView );
gal->PopDepth();
}

Loading…
Cancel
Save