mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
[WIN32K]
- Clip test vertically in ExtTextOut when ETO_CLIPPED is used svn path=/trunk/; revision=55558
This commit is contained in:
parent
cf9ae4daf8
commit
65d63893a7
|
@ -3495,8 +3495,7 @@ GreExtTextOutW(
|
||||||
* brush.
|
* brush.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (lprc &&
|
if (lprc && (fuOptions & ETO_CLIPPED) &&
|
||||||
(fuOptions & ETO_CLIPPED) &&
|
|
||||||
DestRect.right >= lprc->right + dc->ptlDCOrig.x)
|
DestRect.right >= lprc->right + dc->ptlDCOrig.x)
|
||||||
{
|
{
|
||||||
// We do the check '>=' instead of '>' to possibly save an iteration
|
// We do the check '>=' instead of '>' to possibly save an iteration
|
||||||
|
@ -3505,6 +3504,11 @@ GreExtTextOutW(
|
||||||
DestRect.right = lprc->right + dc->ptlDCOrig.x;
|
DestRect.right = lprc->right + dc->ptlDCOrig.x;
|
||||||
DoBreak = TRUE;
|
DoBreak = TRUE;
|
||||||
}
|
}
|
||||||
|
if (lprc && (fuOptions & ETO_CLIPPED) &&
|
||||||
|
DestRect.bottom >= lprc->bottom + dc->ptlDCOrig.y)
|
||||||
|
{
|
||||||
|
DestRect.bottom = lprc->bottom + dc->ptlDCOrig.y;
|
||||||
|
}
|
||||||
MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom);
|
MouseSafetyOnDrawStart(dc->ppdev, DestRect.left, DestRect.top, DestRect.right, DestRect.bottom);
|
||||||
IntEngMaskBlt(
|
IntEngMaskBlt(
|
||||||
SurfObj,
|
SurfObj,
|
||||||
|
|
Loading…
Reference in a new issue