diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-07-22 08:58:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-12 11:08:41 +1000 |
commit | decc44349ba66eb82c2ed575e60e80c2c827633d (patch) | |
tree | 6e0bbd55e866d2d04c2a31ff4e9c854538f640d2 /src | |
parent | 84648fda0f78dc0249bba7338f23526807e1f1d8 (diff) | |
download | xorg-lib-libXext-decc44349ba66eb82c2ed575e60e80c2c827633d.tar.gz |
Correct XShm return values.
XShmAttach, XShmDetach, XShmPutImage do not return a Status but 0 or 1.
Though the man section for XShmAttach says "if all goes well, you will get a
non-zero status, back" this is counter to the usage of Status in Xlib
itself where 0 means Success and no-zero specifies the specific error.
XShmPixmapFormat does not return a Status but the pixmap format or 0 on
failure.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/XShm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -223,7 +223,7 @@ int XShmPixmapFormat(Display *dpy) } -Status XShmAttach(Display *dpy, XShmSegmentInfo *shminfo) +Bool XShmAttach(Display *dpy, XShmSegmentInfo *shminfo) { XExtDisplayInfo *info = find_display (dpy); register xShmAttachReq *req; @@ -243,7 +243,7 @@ Status XShmAttach(Display *dpy, XShmSegmentInfo *shminfo) } -Status XShmDetach(Display *dpy, XShmSegmentInfo *shminfo) +Bool XShmDetach(Display *dpy, XShmSegmentInfo *shminfo) { XExtDisplayInfo *info = find_display (dpy); register xShmDetachReq *req; @@ -312,7 +312,7 @@ XImage *XShmCreateImage ( return image; } -Status XShmPutImage ( +Bool XShmPutImage ( register Display *dpy, Drawable d, GC gc, @@ -354,7 +354,7 @@ Status XShmPutImage ( } -Status XShmGetImage( +Bool XShmGetImage( register Display *dpy, Drawable d, XImage *image, |