Optimize titlescreen logo animation (only redraw logo instead of screen)

This is possible because bug #16724 currently prevents any
overlapping.  Depending how that is fixed (allow it or prevent it),
you may need to revert this
This commit is contained in:
Ali El Gariani 2010-09-18 17:45:29 +00:00
parent 71c6bf67bc
commit 2d099daf23

View file

@ -134,7 +134,7 @@ static void animate_logo(
unsigned long& timer_id
, unsigned& percentage
, tprogress_bar& progress_bar
, twindow& window)
, twindow& /*window*/)
{
assert(percentage <= 100);
++percentage;
@ -146,8 +146,9 @@ static void animate_logo(
* this possible problem. Of course this is expensive but the logo is
* animated once so the cost is only once.
*/
window.set_dirty();
/// @todo overlap seems currently impossible(crash), this allow to skip this.
/// Depending how that is fixed (allow it or prevent it), you may need to renable this
//window.set_dirty();
if(percentage == 100) {
remove_timer(timer_id);