This commit is contained in:
Kovid Goyal 2016-05-12 22:55:48 +05:30
parent 8fa4274974
commit dc0942b6f8

View File

@ -641,7 +641,7 @@ static QImage prepareSurface(QImage srcimg, int w, int h, bool doReflections, bo
if (doReflections) {
// create the reflection
ht = hs - h;
for(x = 0; x < w; x++)
for(x = 0; x < w; x++) {
for(y = 0; y < ht; y++)
{
color = img.pixel(x, img.height()-y-1);
@ -653,6 +653,7 @@ static QImage prepareSurface(QImage srcimg, int w, int h, bool doReflections, bo
result.setPixel(h+y, x, qRgb(r, g, b));
}
}
}
return result;
}