Just use ExtTextOutW for glyphs.
http://codereview.appspot.com/5308047/ git-svn-id: http://skia.googlecode.com/svn/trunk@2512 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d92780b558
commit
cb6c2f4667
@ -406,11 +406,7 @@ const void* HDCOffscreen::draw(const SkGlyph& glyph, bool isBW,
|
||||
SetWorldTransform(fDC, &xform);
|
||||
|
||||
uint16_t glyphID = glyph.getGlyphID();
|
||||
#if defined(UNICODE)
|
||||
ExtTextOut(fDC, 0, 0, ETO_GLYPH_INDEX, NULL, (LPCWSTR)&glyphID, 1, NULL);
|
||||
#else
|
||||
ExtTextOut(fDC, 0, 0, ETO_GLYPH_INDEX, NULL, (LPCSTR)&glyphID, 1, NULL);
|
||||
#endif
|
||||
ExtTextOutW(fDC, 0, 0, ETO_GLYPH_INDEX, NULL, reinterpret_cast<LPCWSTR>(&glyphID), 1, NULL);
|
||||
GdiFlush();
|
||||
|
||||
*srcRBPtr = srcRB;
|
||||
|
Loading…
Reference in New Issue
Block a user