diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-18 01:12:40 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-18 01:12:40 (GMT) |
commit | e43225a09536deddb589d9876da609c017730b53 (patch) | |
tree | ad6eaab73e31f899a8bc19de6226694d5cd35108 /src | |
parent | 81636777396d3385f99bdb1b9f8a07b514b6d7fc (diff) | |
download | Qt-e43225a09536deddb589d9876da609c017730b53.zip Qt-e43225a09536deddb589d9876da609c017730b53.tar.gz Qt-e43225a09536deddb589d9876da609c017730b53.tar.bz2 |
Colorize filter for OpenVG doesn't currently support strength()
Reviewed-by: trustme
Diffstat (limited to 'src')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index d87ac40..3ae3fe4 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -3125,6 +3125,9 @@ QPixmapFilter *QVGPaintEngine::pixmapFilter(int type, const QPixmapFilter *proto d->convolutionFilter.reset(new QVGPixmapConvolutionFilter); return d->convolutionFilter.data(); case QPixmapFilter::ColorizeFilter: + // Strength parameter does not work with current implementation. + if ((static_cast<const QPixmapColorizeFilter *>(prototype))->strength() != 1.0f) + break; if (!d->colorizeFilter) d->colorizeFilter.reset(new QVGPixmapColorizeFilter); return d->colorizeFilter.data(); |