Direct2D QPA: Choose linear interpolation for smooth pixmap transform
Let's do the same thing the raster engine does. Much faster too. Change-Id: I88ea9d2c2ac78feee1193b75a9e96c62a7bd5979 Reviewed-by: Risto Avila <risto.avila@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>bb10
parent
17dda3917d
commit
6c42ddf31f
|
|
@ -382,8 +382,7 @@ public:
|
|||
inline D2D1_INTERPOLATION_MODE interpolationMode() const
|
||||
{
|
||||
Q_Q(const QWindowsDirect2DPaintEngine);
|
||||
// XXX are we choosing the right d2d interpolation modes?
|
||||
return (q->state()->renderHints & QPainter::SmoothPixmapTransform) ? D2D1_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC
|
||||
return (q->state()->renderHints & QPainter::SmoothPixmapTransform) ? D2D1_INTERPOLATION_MODE_LINEAR
|
||||
: D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue