]> git.sesse.net Git - vlc/commit
skins2: resize only similar layouts on-the-fly
authorErwan Tulou <erwan10@videolan.org>
Mon, 1 Apr 2013 00:10:56 +0000 (02:10 +0200)
committerErwan Tulou <erwan10@videolan.org>
Mon, 1 Apr 2013 01:15:40 +0000 (03:15 +0200)
commitfe29bc614b315398b69ab735f01b54d1f669fa42
tree2c4874dd77b8d34a22f7fd97981452feecd5058b
parentac394edb69eb59e141b87870d4cabe403ee92986
skins2: resize only similar layouts on-the-fly

This fixes a regression brought by ff74e967e9777ed821734077051f55ac84a173a5

Forcefully resizing only makes sense when layouts were designed to be similar
in size in the first place. Furthermore, it cuts off a larger layout if a
smaller one is first defined when loading a skin.

Ideally, the skins2 dtd should be extended for skins developers to explicitly
express whether two layouts are tightly-coupled or not, i.e should always be
kept the same size whatever the subsequent resizing performed by the user.
modules/gui/skins2/src/top_window.cpp