]> git.sesse.net Git - vlc/commit
skins2: optimize refresh of text control
authorErwan Tulou <erwan10@videolan.org>
Thu, 29 Jul 2010 13:58:51 +0000 (15:58 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 29 Jul 2010 14:41:54 +0000 (16:41 +0200)
commit1e965d5a46e92c01f332fa306a1d1feb97fd5b2d
treeb60944a9c795d2553480d3569a78ce62df1afc71
parent4382ab9c8c0f949365e88ef9dc6891ce321c40df
skins2: optimize refresh of text control

text controls were far from being optimized
   - a notifyLayout was executed at creation of text control, leading
     to rebuilding the layout twice.
   - the init of the variable was done after the control was created
     which means still more rebuild of the layout.

This patch ensures that no rebuild is done at init since we are already in the
process of rebuilding the entire layout.
modules/gui/skins2/controls/ctrl_text.cpp
modules/gui/skins2/parser/builder.cpp