VIEW_OVERLAY: enforce always on top behaviour through Z ordering
This commit is contained in:
parent
8c36ba3653
commit
7e8f14e738
|
@ -299,8 +299,14 @@ const BOX2I VIEW_OVERLAY::ViewBBox() const
|
||||||
|
|
||||||
void VIEW_OVERLAY::ViewDraw( int aLayer, VIEW* aView ) 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 )
|
for( const VIEW_OVERLAY::COMMAND* cmd : m_commands )
|
||||||
cmd->Execute( aView );
|
cmd->Execute( aView );
|
||||||
|
|
||||||
|
gal->PopDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue