[PATCH] winex11: Build helper functions only when needed
André Hentschel
nerv at dawncrow.de
Tue Mar 27 11:41:58 CDT 2018
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
dlls/winex11.drv/bitblt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c
index 6a858c1..165633c 100644
--- a/dlls/winex11.drv/bitblt.c
+++ b/dlls/winex11.drv/bitblt.c
@@ -1588,6 +1588,7 @@ static inline UINT get_color_component( UINT color, UINT mask )
return (color * mask / 255) << shift;
}
+#ifdef HAVE_LIBXSHAPE
static inline void flush_rgn_data( HRGN rgn, RGNDATA *data )
{
HRGN tmp = ExtCreateRegion( NULL, data->rdh.dwSize + data->rdh.nRgnSize, data );
@@ -1609,6 +1610,7 @@ static inline void add_row( HRGN rgn, RGNDATA *data, int x, int y, int len )
if (data->rdh.nCount * sizeof(RECT) > data->rdh.nRgnSize - sizeof(RECT))
flush_rgn_data( rgn, data );
}
+#endif
/***********************************************************************
* update_surface_region
--
2.7.4
More information about the wine-devel
mailing list