Compile when -directwrite is passed to configure

The signature for alphaRGBMapForGlyph() was updated in the
header but not the implementation. The include with
QT_BUILD_GUI_LIB defined would re-export several symbols in
QtGui from the plugin which would make the link against QtGui
fail.

Change-Id: I23c67f97ca68f984b7a1603059c6f177fef60cca
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2012-07-03 10:47:07 +02:00 committed by Qt by Nokia
parent 5c8d5b3dee
commit b84bb0b245
2 changed files with 7 additions and 8 deletions

View File

@ -614,11 +614,14 @@ QImage QWindowsFontEngineDirectWrite::imageForGlyph(glyph_t t,
}
QImage QWindowsFontEngineDirectWrite::alphaRGBMapForGlyph(glyph_t t,
QFixed subPixelPosition,
int margin,
const QTransform &xform)
QFixed subPixelPosition,
const QTransform &xform)
{
QImage mask = imageForGlyph(t, subPixelPosition, margin, xform);
QImage mask = imageForGlyph(t,
subPixelPosition,
glyphMargin(QFontEngineGlyphCache::Raster_RGBMask),
xform);
return mask.depth() == 32
? mask
: mask.convertToFormat(QImage::Format_RGB32);

View File

@ -44,11 +44,7 @@
#ifndef QT_NO_DIRECTWRITE
// Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
#define QT_BUILD_GUI_LIB
#include <QtGui/private/qfontengine_p.h>
#undef QT_BUILD_GUI_LIB
#include <QtCore/QSharedPointer>
class QWindowsFontEngineData;