diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 98fe1989dc4..9ce0bbdb397 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -664,6 +664,7 @@ struct x11drv_mode_info *X11DRV_Settings_SetHandlers(const char *name, void X11DRV_XF86VM_Init(void) DECLSPEC_HIDDEN; void X11DRV_XF86VM_Cleanup(void) DECLSPEC_HIDDEN; +void X11DRV_XRandR_Init(void) DECLSPEC_HIDDEN; /* XIM support */ extern BOOL X11DRV_InitXIM( const char *input_style ) DECLSPEC_HIDDEN; diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 7118486788c..8012df3f50f 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -47,7 +47,6 @@ #include "winreg.h" #include "x11drv.h" -#include "xrandr.h" #include "xcomposite.h" #include "wine/server.h" #include "wine/debug.h" @@ -576,10 +575,8 @@ static BOOL process_attach(void) /* initialize XVidMode */ X11DRV_XF86VM_Init(); -#ifdef SONAME_LIBXRANDR /* initialize XRandR */ X11DRV_XRandR_Init(); -#endif #ifdef SONAME_LIBXCOMPOSITE X11DRV_XComposite_Init(); #endif diff --git a/dlls/winex11.drv/xrandr.c b/dlls/winex11.drv/xrandr.c index f8134fbf255..4d988efc724 100644 --- a/dlls/winex11.drv/xrandr.c +++ b/dlls/winex11.drv/xrandr.c @@ -20,24 +20,22 @@ #include "config.h" #include "wine/port.h" +#include "wine/debug.h" #include #include +WINE_DEFAULT_DEBUG_CHANNEL(xrandr); + #ifdef SONAME_LIBXRANDR #include #include #include "x11drv.h" -#include "xrandr.h" - #include "windef.h" #include "winbase.h" #include "wingdi.h" #include "wine/library.h" -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(xrandr); static void *xrandr_handle; @@ -299,4 +297,11 @@ void X11DRV_XRandR_Init(void) TRACE("Enabling XRandR\n"); } +#else /* SONAME_LIBXRANDR */ + +void X11DRV_XRandR_Init(void) +{ + TRACE("XRandR support not compiled in.\n"); +} + #endif /* SONAME_LIBXRANDR */ diff --git a/dlls/winex11.drv/xrandr.h b/dlls/winex11.drv/xrandr.h deleted file mode 100644 index 7a12fbb5212..00000000000 --- a/dlls/winex11.drv/xrandr.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Wine X11drv Xrandr interface - * - * Copyright 2003 Alexander James Pasadyn - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ -#ifndef __WINE_XRANDR_H -#define __WINE_XRANDR_H - -#ifndef __WINE_CONFIG_H -# error You must include config.h to use this header -#endif - -#ifdef SONAME_LIBXRANDR - -void X11DRV_XRandR_Init(void) DECLSPEC_HIDDEN; - -#endif /* SONAME_LIBXRANDR */ -#endif /* __WINE_XRANDR_H */