mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:13:05 +00:00
[GDI32] Fix rectangle flag issues.
Fix CORE-17815. Remove dumb dumb code breakers.
This commit is contained in:
parent
b3b1bd66a0
commit
e98684ed8b
1 changed files with 16 additions and 0 deletions
|
@ -494,6 +494,22 @@ ExtTextOutW(
|
||||||
{
|
{
|
||||||
PDC_ATTR pdcattr;
|
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 )
|
if ( !bBypassETOWMF )
|
||||||
{
|
{
|
||||||
HANDLE_METADC(BOOL,
|
HANDLE_METADC(BOOL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue