Module: wine Branch: master Commit: b4debd66a2b7e50bd468a29cfc390cf834ffb38e URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4debd66a2b7e50bd468a29cfc...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Dec 3 12:10:32 2008 +0100
winex11: Make some functions static.
---
dlls/winex11.drv/wintab.c | 2 +- dlls/winex11.drv/xvidmode.c | 6 +++--- dlls/winex11.drv/xvidmode.h | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index c6545e7..c997c7c 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -359,7 +359,7 @@ static void trace_axes(XValuatorInfoPtr val) TRACE(" Axis %d: [resolution %d|min_value %d|max_value %d]\n", i, axis->resolution, axis->min_value, axis->max_value); }
-BOOL match_token(const char *haystack, const char *needle) +static BOOL match_token(const char *haystack, const char *needle) { const char *p, *q; for (p = haystack; *p; ) diff --git a/dlls/winex11.drv/xvidmode.c b/dlls/winex11.drv/xvidmode.c index a97a9db..4ffbdc9 100644 --- a/dlls/winex11.drv/xvidmode.c +++ b/dlls/winex11.drv/xvidmode.c @@ -57,7 +57,7 @@ static unsigned int dd_mode_count; static XF86VidModeModeInfo** real_xf86vm_modes; static unsigned int real_xf86vm_mode_count;
-#define MAKE_FUNCPTR(f) typeof(f) * p##f; +#define MAKE_FUNCPTR(f) static typeof(f) * p##f; MAKE_FUNCPTR(XF86VidModeGetAllModeLines) MAKE_FUNCPTR(XF86VidModeGetModeLine) MAKE_FUNCPTR(XF86VidModeLockModeSwitch) @@ -356,7 +356,7 @@ static BOOL ComputeGammaFromRamp(WORD ramp[256], float *gamma) /* Hmm... should gamma control be available in desktop mode or not? * I'll assume that it should */
-BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp) +static BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp) { #ifdef X_XF86VidModeSetGamma XF86VidModeGamma gamma; @@ -390,7 +390,7 @@ BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp) return FALSE; }
-BOOL X11DRV_XF86VM_SetGammaRamp(LPDDGAMMARAMP ramp) +static BOOL X11DRV_XF86VM_SetGammaRamp(LPDDGAMMARAMP ramp) { #ifdef X_XF86VidModeSetGamma XF86VidModeGamma gamma; diff --git a/dlls/winex11.drv/xvidmode.h b/dlls/winex11.drv/xvidmode.h index c6b7d17..9d68ff1 100644 --- a/dlls/winex11.drv/xvidmode.h +++ b/dlls/winex11.drv/xvidmode.h @@ -33,10 +33,6 @@
void X11DRV_XF86VM_Init(void); void X11DRV_XF86VM_Cleanup(void); -void X11DRV_XF86VM_SetExclusiveMode(int lock); - -BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp); -BOOL X11DRV_XF86VM_SetGammaRamp(LPDDGAMMARAMP ramp);
#endif /* SONAME_LIBXXF86VM */ #endif /* __WINE_XVIDMODE_H */