equal
deleted
inserted
replaced
65 |
65 |
66 BGWidget::BGWidget(QWidget * parent) : QWidget(parent) |
66 BGWidget::BGWidget(QWidget * parent) : QWidget(parent) |
67 { |
67 { |
68 setAttribute(Qt::WA_NoSystemBackground, true); |
68 setAttribute(Qt::WA_NoSystemBackground, true); |
69 sprite.load(":/res/Star.png"); |
69 sprite.load(":/res/Star.png"); |
70 |
70 |
71 setAutoFillBackground(false); |
71 setAutoFillBackground(false); |
72 |
72 |
73 for (int i = 0; i < SPRITE_MAX; i++) spritePositions[i] = new SpritePosition(this, sprite.height()); |
73 for (int i = 0; i < SPRITE_MAX; i++) spritePositions[i] = new SpritePosition(this, sprite.height()); |
74 |
74 |
75 for (int i = 0; i < 360; i++) |
75 for (int i = 0; i < 360; i++) |
76 { |
76 { |
77 rotatedSprites[i] = new QImage(sprite.width(), sprite.height(), QImage::Format_ARGB32); |
77 rotatedSprites[i] = new QImage(sprite.width(), sprite.height(), QImage::Format_ARGB32); |
78 rotatedSprites[i]->fill(0); |
78 rotatedSprites[i]->fill(0); |
79 |
79 |