From e086eb1bf49f2a8c270eaebd5beb595c1dc2973e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Sep 2011 21:26:17 -0700 Subject: Strip trailing whitespace Performed with: find * -type f | xargs perl -i -p -e 's{\s+$}{\n}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith --- src/display.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index bcf9964..7998fe7 100644 --- a/src/display.c +++ b/src/display.c @@ -126,7 +126,7 @@ _XcursorGetDisplayInfo (Display *dpy) return NULL; info->next = NULL; info->display = dpy; - + info->codes = XAddExtension (dpy); if (!info->codes) { @@ -162,7 +162,7 @@ _XcursorGetDisplayInfo (Display *dpy) info->has_anim_cursor = XcursorFalse; } } - + info->size = 0; /* @@ -173,7 +173,7 @@ _XcursorGetDisplayInfo (Display *dpy) v = XGetDefault (dpy, "Xcursor", "size"); if (v) info->size = atoi (v); - + /* * Use the Xft size to guess a size; make cursors 16 "points" tall */ @@ -186,15 +186,15 @@ _XcursorGetDisplayInfo (Display *dpy) if (dpi) info->size = dpi * 16 / 72; } - + /* * Use display size to guess a size */ if (info->size == 0) { int dim; - - if (DisplayHeight (dpy, DefaultScreen (dpy)) < + + if (DisplayHeight (dpy, DefaultScreen (dpy)) < DisplayWidth (dpy, DefaultScreen (dpy))) dim = DisplayHeight (dpy, DefaultScreen (dpy)); else @@ -204,7 +204,7 @@ _XcursorGetDisplayInfo (Display *dpy) */ info->size = dim / 48; } - + info->theme = NULL; info->theme_from_config = NULL; @@ -287,7 +287,7 @@ _XcursorGetDisplayInfo (Display *dpy) _XcursorDisplayInfo = info; } _XUnlockMutex (_Xglobal_lock); - + return info; } @@ -373,7 +373,7 @@ XcursorGetThemeCore (Display *dpy) if (!info) return XcursorFalse; return info->theme_core; - + } XcursorBool -- cgit v1.2.3