equal
deleted
inserted
replaced
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 |
179 |
180 repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime. |
180 //repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime. |
181 } |
181 } |
182 |
182 |
183 void BGWidget::startAnimation() |
183 void BGWidget::startAnimation() |
184 { |
184 { |
185 timerAnimation->start(); |
185 timerAnimation->start(); |