Commit 62b1949d authored by mitz@apple.com's avatar mitz@apple.com

- Windows build fix

        * platform/graphics/win/FontCGWin.cpp:
        (WebCore::Font::drawGlyphs):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1a6d06be
2008-05-01 Dan Bernstein <mitz@apple.com>
- Windows build fix
* platform/graphics/win/FontCGWin.cpp:
(WebCore::Font::drawGlyphs):
2008-05-01 Dan Bernstein <mitz@apple.com>
Reviewed by Darin Adler.
......@@ -213,13 +213,13 @@ void Font::drawGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* fo
xform.eDx = point.x();
xform.eDy = point.y();
ModifyWorldTransform(hdc, &xform, MWT_LEFTMULTIPLY);
ExtTextOut(hdc, 0, 0, ETO_GLYPH_INDEX, 0, reinterpret_cast<WCHAR*>(glyphBuffer.glyphs(from)), numGlyphs, gdiAdvances.data());
ExtTextOut(hdc, 0, 0, ETO_GLYPH_INDEX, 0, reinterpret_cast<const WCHAR*>(glyphBuffer.glyphs(from)), numGlyphs, gdiAdvances.data());
if (font->m_syntheticBoldOffset) {
xform.eM21 = 0;
xform.eDx = font->m_syntheticBoldOffset;
xform.eDy = 0;
ModifyWorldTransform(hdc, &xform, MWT_LEFTMULTIPLY);
ExtTextOut(hdc, 0, 0, ETO_GLYPH_INDEX, 0, reinterpret_cast<WCHAR*>(glyphBuffer.glyphs(from)), numGlyphs, gdiAdvances.data());
ExtTextOut(hdc, 0, 0, ETO_GLYPH_INDEX, 0, reinterpret_cast<const WCHAR*>(glyphBuffer.glyphs(from)), numGlyphs, gdiAdvances.data());
}
} else {
RetainPtr<CGMutablePathRef> path(AdoptCF, CGPathCreateMutable());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment