diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-10-08 13:33:25 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-10-11 14:40:45 (GMT) |
commit | ef7df41b11c4f5e026b85ca9b02a9c05b427a301 (patch) | |
tree | c0bf9978016f7629481ed7cf61365b5d079c10f5 /src/openvg/qpaintengine_vg.cpp | |
parent | 36438bc216f939acd4e6772847d435e2e77d41c3 (diff) | |
download | Qt-ef7df41b11c4f5e026b85ca9b02a9c05b427a301.zip Qt-ef7df41b11c4f5e026b85ca9b02a9c05b427a301.tar.gz Qt-ef7df41b11c4f5e026b85ca9b02a9c05b427a301.tar.bz2 |
Compile fix for OpenVG without VGFont.
ShivaVG doesn't have VGFont support for example.
Reviewed-by: Jason Barron
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index f6d2435..ce9d11a 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -61,11 +61,6 @@ QT_BEGIN_NAMESPACE -// vgDrawGlyphs() only exists in OpenVG 1.1 and higher. -#if !defined(OPENVG_VERSION_1_1) && !defined(QVG_NO_DRAW_GLYPHS) -#define QVG_NO_DRAW_GLYPHS 1 -#endif - // vgRenderToMask() only exists in OpenVG 1.1 and higher. // Also, disable masking completely if we are using the scissor to clip. #if !defined(OPENVG_VERSION_1_1) && !defined(QVG_NO_RENDER_TO_MASK) @@ -75,11 +70,11 @@ QT_BEGIN_NAMESPACE #define QVG_NO_RENDER_TO_MASK 1 #endif -#if !defined(QVG_NO_DRAW_GLYPHS) - // use the same rounding as in qrasterizer.cpp (6 bit fixed point) static const qreal aliasedCoordinateDelta = 0.5 - 0.015625; +#if !defined(QVG_NO_DRAW_GLYPHS) + Q_DECL_IMPORT extern int qt_defaultDpiX(); Q_DECL_IMPORT extern int qt_defaultDpiY(); |