diff options
-rw-r--r-- | include/X11/extensions/Xdamage.h | 8 | ||||
-rw-r--r-- | src/Xdamage.c | 16 |
2 files changed, 14 insertions, 10 deletions
diff --git a/include/X11/extensions/Xdamage.h b/include/X11/extensions/Xdamage.h index b55da38..5ec636d 100644 --- a/include/X11/extensions/Xdamage.h +++ b/include/X11/extensions/Xdamage.h @@ -49,11 +49,13 @@ typedef struct { _XFUNCPROTOBEGIN -Bool XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep); +Bool XDamageQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return); Status XDamageQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp); + int *major_version_return, + int *minor_version_return); Damage XDamageCreate (Display *dpy, Drawable drawable, int level); diff --git a/src/Xdamage.c b/src/Xdamage.c index c699a15..a3966d6 100644 --- a/src/Xdamage.c +++ b/src/Xdamage.c @@ -282,14 +282,16 @@ XDamageEventToWire(Display *dpy, XEvent *event, xEvent *wire) } Bool -XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) +XDamageQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); if (XDamageHasExtension(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 @@ -298,15 +300,15 @@ XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) Status XDamageQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp) + int *major_version_return, + int *minor_version_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); XDamageCheckExtension (dpy, info, 0); - *major_versionp = info->major_version; - *minor_versionp = info->minor_version; + *major_version_return = info->major_version; + *minor_version_return = info->minor_version; return 1; } |