more api niceness

This commit is contained in:
Aaron Seigo 2011-04-30 10:17:51 +02:00
parent 5f0daaec50
commit aa2c6b7683

View File

@ -456,9 +456,9 @@ void Wallpaper::render(const QString &sourceImagePath, const QSize &size,
}
}
for (int i = 0; i < WallpaperPrivate::s_renderers.size(); i++) {
if (d->renderToken == WallpaperPrivate::s_renderers[i]->currentToken()) {
d->renderToken = WallpaperPrivate::s_renderers[i]->render(sourceImagePath, size, resizeMethod, color);
foreach (WallpaperRenderThread *renderer, WallpaperPrivate::s_renderers) {
if (d->renderToken == renderer->currentToken()) {
d->renderToken = renderer->render(sourceImagePath, size, resizeMethod, color);
return;
}
}