Module: wine Branch: master Commit: 21498d6c1115d18e4e070aa6ce33ae54c7cb16b2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=21498d6c1115d18e4e070aa6ce...
Author: Alexandre Julliard julliard@winehq.org Date: Sun Feb 19 20:30:51 2012 +0100
gdi32: Paint everything in ExtFloodFill when the DIB doesn't have a clip region.
---
dlls/gdi32/dibdrv/graphics.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/dibdrv/graphics.c b/dlls/gdi32/dibdrv/graphics.c index 17d6994..3251f36 100644 --- a/dlls/gdi32/dibdrv/graphics.c +++ b/dlls/gdi32/dibdrv/graphics.c @@ -681,7 +681,7 @@ BOOL dibdrv_Ellipse( PHYSDEV dev, INT left, INT top, INT right, INT bottom ) static inline BOOL is_interior( dib_info *dib, HRGN clip, int x, int y, DWORD pixel, UINT type) { /* the clip rgn stops the flooding */ - if (!PtInRegion( clip, x, y )) return FALSE; + if (clip && !PtInRegion( clip, x, y )) return FALSE;
if (type == FLOODFILLBORDER) return dib->funcs->get_pixel( dib, x, y ) != pixel; @@ -734,7 +734,7 @@ BOOL dibdrv_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT type ) RECT row; HRGN rgn;
- TRACE( "(%p, %d, %d, %08x, %d\n", pdev, x, y, color, type ); + TRACE( "(%p, %d, %d, %08x, %d)\n", pdev, x, y, color, type );
if (!is_interior( &pdev->dib, pdev->clip, x, y, pixel, type )) return FALSE;