Copy-paste bug in SSE2 scaling to under 0.5x
This commit is contained in:
@@ -1024,7 +1024,7 @@ PixelBuffer *rfb::progressiveBilinearScale(const PixelBuffer *pb,
|
|||||||
rdr::U8 *newpx = ((ManagedPixelBuffer *) newpb)->getBufferRW(newpb->getRect(),
|
rdr::U8 *newpx = ((ManagedPixelBuffer *) newpb)->getBufferRW(newpb->getRect(),
|
||||||
&newstride);
|
&newstride);
|
||||||
|
|
||||||
SSE2_scale(oldpx, tgtw, tgth, newpx, oldstride, newstride, tgtdiff);
|
SSE2_scale(oldpx, tgtw, tgth, newpx, oldstride, newstride, tgtw / (float) oldw);
|
||||||
if (del)
|
if (del)
|
||||||
delete pb;
|
delete pb;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user