mirror of
https://github.com/reactos/reactos.git
synced 2024-12-04 00:43:32 +08:00
[GDI32] Fix rectangle flag issues.
Fix CORE-17815. Remove dumb dumb code breakers.
This commit is contained in:
parent
b3b1bd66a0
commit
e98684ed8b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user