Kaydet (Commit) a7b9af59 authored tarafından Khaled Hosny's avatar Khaled Hosny

GF_VERT is only used once, move it

Change-Id: I15289eecfbfb29ee549470a7f752e0c7fd9f811e
Reviewed-on: https://gerrit.libreoffice.org/31820Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKhaled Hosny <khaledhosny@eglug.org>
üst a597dc83
......@@ -22,14 +22,6 @@
typedef sal_uInt32 sal_GlyphId;
// Glyph Flags
#ifdef _WIN32
// caution !!!
#define GF_VERT 0x02000000
// GF_VERT is only for windows implementation
// (win/gdi/salgdi3.cxx, win/gdi/winlayout.cxx)
// don't use this elsewhere !!!
#endif
#define GF_FONTMASK 0xF0000000
#define GF_FONTSHIFT 28
......
......@@ -296,7 +296,7 @@ bool ExTextOutRenderer::operator ()(SalLayout const &rLayout, HDC hDC,
bGlyphs = true;
WORD glyphWStr[] = { pGlyph->maGlyphId };
if (pGlyph->IsVertical())
glyphWStr[0] |= GF_VERT;
glyphWStr[0] |= 0x02000000; // A (undocumented?) GDI flag for vertical glyphs
ExtTextOutW(hDC, pPos->X(), pPos->Y(), ETO_GLYPH_INDEX, nullptr, LPCWSTR(&glyphWStr), 1, nullptr);
}
......
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