diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index d8e5f9155dd6dbf890a1a1943aedb44d46ffb727..638356b5aa40749d2f20ffb2b1c6171f518c899d 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -1312,9 +1312,10 @@ X11DRV_ExtFloodFill( X11DRV_PDEVICE *physDev, INT x, INT y, COLORREF color,
         wine_tsx11_lock();
         XSetFunction( gdi_display, physDev->gc, GXcopy );
         X11DRV_InternalFloodFill(image, physDev,
-                                 physDev->dc_rect.left + pt.x - rect.left,
-                                 physDev->dc_rect.top + pt.y - rect.top,
-                                 rect.left, rect.top,
+                                 pt.x - rect.left,
+                                 pt.y - rect.top,
+                                 physDev->dc_rect.left + rect.left,
+                                 physDev->dc_rect.top + rect.top,
                                  X11DRV_PALETTE_ToPhysical( physDev, color ),
                                  fillType );
         wine_tsx11_unlock();