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 /include | |
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 'include')
-rw-r--r-- | include/X11/extensions/XShm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/X11/extensions/XShm.h b/include/X11/extensions/XShm.h index af1baea..23f0651 100644 --- a/include/X11/extensions/XShm.h +++ b/include/X11/extensions/XShm.h @@ -75,17 +75,17 @@ int XShmPixmapFormat( Display* /* dpy */ ); -Status XShmAttach( +Bool XShmAttach( Display* /* dpy */, XShmSegmentInfo* /* shminfo */ ); -Status XShmDetach( +Bool XShmDetach( Display* /* dpy */, XShmSegmentInfo* /* shminfo */ ); -Status XShmPutImage( +Bool XShmPutImage( Display* /* dpy */, Drawable /* d */, GC /* gc */, @@ -99,7 +99,7 @@ Status XShmPutImage( Bool /* send_event */ ); -Status XShmGetImage( +Bool XShmGetImage( Display* /* dpy */, Drawable /* d */, XImage* /* image */, |