gdi: Don't treat a NULL rect as an empty rect in ExtTextOutW.

This commit is contained in:
qingdoa daoo 2006-06-06 11:42:45 +08:00 committed by Alexandre Julliard
parent 585763ffa9
commit 9de7c3ae78
1 changed files with 3 additions and 1 deletions

View File

@ -1748,6 +1748,9 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
GDI_ReleaseObj( hdc );
return ret;
}
if (!lprect)
flags &= ~ETO_CLIPPED;
if( !(flags & (ETO_GLYPH_INDEX | ETO_IGNORELANGUAGE)) && BidiAvail && count > 0 )
{
@ -1800,7 +1803,6 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
{
if(!lprect)
{
if(flags & ETO_CLIPPED) goto done;
if(flags & ETO_GLYPH_INDEX)
GetTextExtentPointI(hdc, glyphs, count, &sz);
else