[GDI32] Fix rectangle flag issues.

Fix CORE-17815. Remove dumb dumb code breakers.
This commit is contained in:
James Tabor 2021-10-16 11:16:43 -05:00
parent b3b1bd66a0
commit e98684ed8b

View file

@ -494,6 +494,22 @@ ExtTextOutW(
{
PDC_ATTR pdcattr;
// Need both, should return a parameter error? No they don't!
if ( !lpDx && fuOptions & ETO_PDY )
return FALSE;
// Now sorting out rectangle.
// Here again, need both.
if ( lprc && !(fuOptions & (ETO_CLIPPED|ETO_OPAQUE)) )
{
lprc = NULL; // No flags, no rectangle.
}
else if (!lprc) // No rectangle, force clear flags if set and continue.
{
fuOptions &= ~(ETO_CLIPPED|ETO_OPAQUE);
}
if ( !bBypassETOWMF )
{
HANDLE_METADC(BOOL,