gdiplus/tests: Fix GetLogFont charset tests for Asian platforms.

This commit is contained in:
Austin Lund 2010-10-25 14:39:08 +10:00 committed by Alexandre Julliard
parent 86c39000a4
commit ae0a484945
1 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,8 @@ static void test_logfont(void)
expect(0, lfa2.lfItalic); expect(0, lfa2.lfItalic);
expect(0, lfa2.lfUnderline); expect(0, lfa2.lfUnderline);
expect(0, lfa2.lfStrikeOut); expect(0, lfa2.lfStrikeOut);
expect(GetTextCharset(hdc), lfa2.lfCharSet); ok(lfa2.lfCharSet == GetTextCharset(hdc) || lfa2.lfCharSet == ANSI_CHARSET,
"Expected %x or %x, got %x\n", GetTextCharset(hdc), ANSI_CHARSET, lfa2.lfCharSet);
expect(0, lfa2.lfOutPrecision); expect(0, lfa2.lfOutPrecision);
expect(0, lfa2.lfClipPrecision); expect(0, lfa2.lfClipPrecision);
expect(0, lfa2.lfQuality); expect(0, lfa2.lfQuality);
@ -159,7 +160,8 @@ static void test_logfont(void)
expect(TRUE, lfa2.lfItalic); expect(TRUE, lfa2.lfItalic);
expect(TRUE, lfa2.lfUnderline); expect(TRUE, lfa2.lfUnderline);
expect(TRUE, lfa2.lfStrikeOut); expect(TRUE, lfa2.lfStrikeOut);
expect(GetTextCharset(hdc), lfa2.lfCharSet); ok(lfa2.lfCharSet == GetTextCharset(hdc) || lfa2.lfCharSet == ANSI_CHARSET,
"Expected %x or %x, got %x\n", GetTextCharset(hdc), ANSI_CHARSET, lfa2.lfCharSet);
expect(0, lfa2.lfOutPrecision); expect(0, lfa2.lfOutPrecision);
expect(0, lfa2.lfClipPrecision); expect(0, lfa2.lfClipPrecision);
expect(0, lfa2.lfQuality); expect(0, lfa2.lfQuality);