QTfrontend/bgwidget.cpp
changeset 2377 f3fab2b09e0c
parent 2071 0faa147c47df
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2376:ece7b87f1334 2377:f3fab2b09e0c
    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