summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpaintengine_vg.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-03-14 22:11:13 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-03-14 22:11:13 (GMT)
commitdf77be2a58a36c756592465616beaaeed06d134b (patch)
tree428400363aacd079e0a47067f6ec73100a97df46 /src/openvg/qpaintengine_vg.cpp
parent4f1b0d758e42872d2852e0eedd2417a858d603e2 (diff)
downloadQt-df77be2a58a36c756592465616beaaeed06d134b.zip
Qt-df77be2a58a36c756592465616beaaeed06d134b.tar.gz
Qt-df77be2a58a36c756592465616beaaeed06d134b.tar.bz2
Fix compilation of OpenVG paint engine with OpenVG 1.0
Task-number: QTBUG-9006
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r--src/openvg/qpaintengine_vg.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index 2c850c9..4902cbd 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -3307,6 +3307,7 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem)
bool QVGPaintEngine::drawCachedGlyphs(int numGlyphs, const glyph_t *glyphs, const QFont &font,
QFontEngine *fontEngine, const QPointF &p)
{
+#if !defined(QVG_NO_DRAW_GLYPHS)
Q_D(QVGPaintEngine);
// Find the glyph cache for this font.
@@ -3361,6 +3362,14 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem)
NULL, NULL, VG_FILL_PATH, VG_TRUE);
return true;
+#else
+ Q_UNUSED(numGlyphs);
+ Q_UNUSED(glyphs);
+ Q_UNUSED(font);
+ Q_UNUSED(fontEngine);
+ Q_UNUSED(p);
+ return false;
+#endif
}
void QVGPaintEngine::setState(QPainterState *s)