winex11.drv: Make X11DRV_XROPfunction static.

Francois Gouget fgouget at free.fr
Fri Mar 13 14:04:52 CDT 2015


---

This variable is only used from this one file.

 dlls/winex11.drv/graphics.c | 2 +-
 dlls/winex11.drv/x11drv.h   | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index 769fa8a..f23a502 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -51,7 +51,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(graphics);
 #define ABS(x)    ((x)<0?(-(x)):(x))
 
   /* ROP code to GC function conversion */
-const int X11DRV_XROPfunction[16] =
+static const int X11DRV_XROPfunction[16] =
 {
     GXclear,        /* R2_BLACK */
     GXnor,          /* R2_NOTMERGEPEN */
diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 533af2c..da13c6e 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -214,8 +214,6 @@ extern BOOL X11DRV_SetupGCForBrush( X11DRV_PDEVICE *physDev ) DECLSPEC_HIDDEN;
 extern INT X11DRV_XWStoDS( HDC hdc, INT width ) DECLSPEC_HIDDEN;
 extern INT X11DRV_YWStoDS( HDC hdc, INT height ) DECLSPEC_HIDDEN;
 
-extern const int X11DRV_XROPfunction[];
-
 extern BOOL client_side_graphics DECLSPEC_HIDDEN;
 extern BOOL client_side_with_render DECLSPEC_HIDDEN;
 extern BOOL shape_layered_windows DECLSPEC_HIDDEN;
-- 
2.1.4




More information about the wine-patches mailing list