Commit 1ce3c5d6 authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix animated image flickering

Switch the layout activity to true before actually displaying the layout. This
gives controls a chance to reinitialize before any real drawing occurs, and
thus a clean animation gets displayed without any unwanted stray image.

This fixes trac #12083
parent 1c101b97
...@@ -361,13 +361,14 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout ) ...@@ -361,13 +361,14 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout )
// Get the size of the layout and resize the window // Get the size of the layout and resize the window
resize( pLayout->getWidth(), pLayout->getHeight() ); resize( pLayout->getWidth(), pLayout->getHeight() );
// The new layout is active
pLayout->getActiveVar().set( true );
if( isVisible ) if( isVisible )
{ {
pLayout->onShow(); pLayout->onShow();
} }
// The new layout is active
pLayout->getActiveVar().set( true );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment