diff options
-rw-r--r-- | include/X11/extensions/Xrandr.h | 8 | ||||
-rw-r--r-- | man/Xrandr.man | 6 | ||||
-rw-r--r-- | src/Xrandr.c | 8 |
3 files changed, 13 insertions, 9 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h index 58dc75d..77a7d04 100644 --- a/include/X11/extensions/Xrandr.h +++ b/include/X11/extensions/Xrandr.h @@ -119,10 +119,12 @@ typedef struct { /* internal representation is private to the library */ typedef struct _XRRScreenConfiguration XRRScreenConfiguration; -Bool XRRQueryExtension (Display *dpy, int *event_basep, int *error_basep); +Bool XRRQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return); Status XRRQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp); + int *major_version_return, + int *minor_version_return); XRRScreenConfiguration *XRRGetScreenInfo (Display *dpy, Window window); diff --git a/man/Xrandr.man b/man/Xrandr.man index 0c6a105..f5b1034 100644 --- a/man/Xrandr.man +++ b/man/Xrandr.man @@ -35,11 +35,11 @@ .nf .sp Bool XRRQueryExtension \^(\^Display *\fIdpy\fP, - int *\fIevent_basep\fP, int *\fIerror_basep\fP\^); + int *\fIevent_base_return\fP, int *\fIerror_base_return\fP\^); .sp Status XRRQueryVersion \^(\^Display *\fIdpy\fP, - int *\fImajor_versionp\fP, - int *\fIminor_versionp\fP\^); + int *\fImajor_version_return\fP, + int *\fIminor_version_return\fP\^); .sp XRRScreenConfiguration *XRRGetScreenInfo \^(\^Display *dpy, Drawable \fIdraw\fP\^); diff --git a/src/Xrandr.c b/src/Xrandr.c index b6068dc..8896675 100644 --- a/src/Xrandr.c +++ b/src/Xrandr.c @@ -272,13 +272,15 @@ int XRRRootToScreen(Display *dpy, Window root) } -Bool XRRQueryExtension (Display *dpy, int *event_basep, int *error_basep) +Bool XRRQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return) { XExtDisplayInfo *info = XRRFindDisplay (dpy); if (XextHasExtension(info)) { - *event_basep = info->codes->first_event; - *error_basep = info->codes->first_error; + *event_base_return = info->codes->first_event; + *error_base_return = info->codes->first_error; return True; } else { return False; |