gdi32: Fix underline and strickeout output for clipped to the rectangle text (eterbug...
authorIlya Shpigor <shpigor@etersoft.ru>
Fri, 30 Apr 2010 08:32:09 +0000 (12:32 +0400)
committerDenis Baranov <baraka@etersoft.ru>
Tue, 4 May 2010 14:10:11 +0000 (18:10 +0400)
dlls/gdi32/font.c

index 7847f031af60a60734a0375592c56b8004c11359..5d0c2d0cd691eec63c195fa022f2cf7a38ff7e74 100644 (file)
@@ -2003,6 +2003,9 @@ done:
 
     release_dc_ptr( dc );
 
+    if((flags & ETO_CLIPPED) && (rc.bottom < y))
+        return ret;
+
     if (ret && (lf.lfUnderline || lf.lfStrikeOut))
     {
         int underlinePos, strikeoutPos;