Fix MinGW-warning about pointer/integer of different sizes (64bit).
Change-Id: I26945bbcd0994e478332ea1250ad7d0bbaa8420f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
661c3701f4
commit
1029049e1d
@ -1226,13 +1226,13 @@ QImage QWindowsFontEngine::alphaRGBMapForGlyph(glyph_t glyph, QFixed, const QTra
|
|||||||
{
|
{
|
||||||
HFONT font = hfont;
|
HFONT font = hfont;
|
||||||
|
|
||||||
int contrast;
|
UINT contrast;
|
||||||
SystemParametersInfo(SPI_GETFONTSMOOTHINGCONTRAST, 0, &contrast, 0);
|
SystemParametersInfo(SPI_GETFONTSMOOTHINGCONTRAST, 0, &contrast, 0);
|
||||||
SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, (void *) 1000, 0);
|
SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, (void *) 1000, 0);
|
||||||
|
|
||||||
int margin = glyphMargin(QFontEngineGlyphCache::Raster_RGBMask);
|
int margin = glyphMargin(QFontEngineGlyphCache::Raster_RGBMask);
|
||||||
QWindowsNativeImage *mask = drawGDIGlyph(font, glyph, margin, t, QImage::Format_RGB32);
|
QWindowsNativeImage *mask = drawGDIGlyph(font, glyph, margin, t, QImage::Format_RGB32);
|
||||||
SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, (void *) contrast, 0);
|
SystemParametersInfo(SPI_SETFONTSMOOTHINGCONTRAST, 0, (void *) quintptr(contrast), 0);
|
||||||
|
|
||||||
if (mask == 0)
|
if (mask == 0)
|
||||||
return QImage();
|
return QImage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user