From 21498d6c1115d18e4e070aa6ce33ae54c7cb16b2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 19 Feb 2012 20:30:51 +0100 Subject: [PATCH] gdi32: Paint everything in ExtFloodFill when the DIB doesn't have a clip region. --- dlls/gdi32/dibdrv/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/dibdrv/graphics.c b/dlls/gdi32/dibdrv/graphics.c index 17d6994c648..3251f3612d8 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; -- 2.11.4.GIT