equal
deleted
inserted
replaced
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(); |