=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: winex11: Build helper functions only when needed.
Alexandre Julliard
julliard at winehq.org
Thu Mar 29 19:13:28 CDT 2018
Module: wine
Branch: master
Commit: 4f547e784a7505090bb41d353891451e163f7ad7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4f547e784a7505090bb41d353891451e163f7ad7
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Mar 27 18:41:58 2018 +0200
winex11: Build helper functions only when needed.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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
More information about the wine-cvs
mailing list