QTfrontend/ui/widget/bgwidget.cpp
branchwebgl
changeset 8444 75db7bb8dce8
parent 8420 98e3cc0418f9
child 9080 9b42757d7e71
equal deleted inserted replaced
8340:46a9fde631f4 8444:75db7bb8dce8
   174 
   174 
   175         int xdiff = newPos.x() - oldPos.x();
   175         int xdiff = newPos.x() - oldPos.x();
   176         int ydiff = newPos.y() - oldPos.y();
   176         int ydiff = newPos.y() - oldPos.y();
   177         update(oldPos.x(), oldPos.y(), xdiff+sprite.width(), ydiff+sprite.height());
   177         update(oldPos.x(), oldPos.y(), xdiff+sprite.width(), ydiff+sprite.height());
   178     }
   178     }
       
   179 
       
   180     //repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime.
   179 }
   181 }
   180 
   182 
   181 void BGWidget::startAnimation()
   183 void BGWidget::startAnimation()
   182 {
   184 {
   183     timerAnimation->start();
   185     timerAnimation->start();