little tweak to the overlay look

svn path=/trunk/KDE/kdelibs/; revision=930624
This commit is contained in:
Marco Martin 2009-02-23 22:10:30 +00:00
parent bb3ebe644f
commit d86a36efa1

View File

@ -826,9 +826,9 @@ void Applet::setBackgroundHints(const BackgroundHints hints)
//position is in the boundaries overlaySize.width()*2, overlaySize.height()
qsrand(id());
d->background->d->overlayPos.rx() = - (overlaySize.width() /4) + (overlaySize.width() /4) * (qrand() % (4 + 1));
d->background->d->overlayPos.rx() = - (overlaySize.width() /2) + (overlaySize.width() /4) * (qrand() % (4 + 1));
d->background->d->overlayPos.ry() = (- (overlaySize.height() /4) + (overlaySize.height() /4) * (qrand() % (4 + 1)))/2;
d->background->d->overlayPos.ry() = (- (overlaySize.height() /2) + (overlaySize.height() /4) * (qrand() % (4 + 1)))/2;
}
} else if (d->background) {