Author: rharabien
Date: Sun Feb 12 11:02:00 2012
New Revision: 55558

URL: http://svn.reactos.org/svn/reactos?rev=55558&view=rev
Log:
[WIN32K]
- Clip test vertically in ExtTextOut when ETO_CLIPPED is used

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/freetype.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/freetype.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/freetype.c?rev=55558&r1=55557&r2=55558&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] 
(original)
+++ trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] Sun 
Feb 12 11:02:00 2012
@@ -3495,8 +3495,7 @@
          * brush.
          */
 
-        if (lprc &&
-                (fuOptions & ETO_CLIPPED) &&
+        if (lprc && (fuOptions & ETO_CLIPPED) &&
                 DestRect.right >= lprc->right + dc->ptlDCOrig.x)
         {
             // We do the check '>=' instead of '>' to possibly save an 
iteration
@@ -3504,6 +3503,11 @@
             // and x is always incremented.
             DestRect.right = lprc->right + dc->ptlDCOrig.x;
             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);
         IntEngMaskBlt(


Reply via email to