Commit 0812cc88 authored by Erwan Tulou's avatar Erwan Tulou Committed by Felix Paul Kühne

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

(cherry picked from commit 1ce3c5d673ba7a71f3db5cf7f1d11ee906f92d39)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent cb3f44ba
......@@ -382,13 +382,14 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout )
// Get the size of the layout and resize the window
resize( pLayout->getWidth(), pLayout->getHeight() );
// The new layout is active
pLayout->getActiveVar().set( true );
if( isVisible )
{
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