diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-15 22:41:52 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-15 22:41:52 +0000 |
commit | 2cbeadeae00216a58e705ca9676e67f6b8a5ccfd (patch) | |
tree | deaece249fc6ddc29fd268743b259a371632269f /recordmydesktop/src/queryextensions.c | |
parent | be180f9385ffb3459525db309fe009b6f76906ad (diff) |
exit status values
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@48 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/queryextensions.c')
-rw-r--r-- | recordmydesktop/src/queryextensions.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/recordmydesktop/src/queryextensions.c b/recordmydesktop/src/queryextensions.c index 0ccac84..0b311b9 100644 --- a/recordmydesktop/src/queryextensions.c +++ b/recordmydesktop/src/queryextensions.c @@ -27,33 +27,22 @@ #include <recordmydesktop.h> -int QueryExtensions(Display *dpy,ProgArgs *args,int *damage_event,int *damage_error){ +void QueryExtensions(Display *dpy,ProgArgs *args,int *damage_event,int *damage_error){ int xf_event_basep, xf_error_basep; if(!XDamageQueryExtension( dpy, damage_event, damage_error)){ fprintf(stderr,"XDamage extension not found!!!\n"); - return 1; + exit(4); } if((!args->noshared)&&(XShmQueryExtension(dpy)==False)){ args->noshared=1; - fprintf(stderr,"Shared Memory extension not present!\nContinuing without it.\n"); + fprintf(stderr,"Shared Memory extension not present!\nTry again removing the --with-shared option(if you used it)\nand add the --no-cond-shared option.\n"); + exit(5); } if((args->xfixes_cursor)&&(XFixesQueryExtension(dpy,&xf_event_basep,&xf_error_basep)==False)){ args->xfixes_cursor=0; - fprintf(stderr,"Xfixes extension not present!\nContinuing without it.\n"); + fprintf(stderr,"Xfixes extension not present!\nPlease run with the -dummy-cursor or --no-cursor option.\n"); + exit(6); } -// XFixesCursorImage *xcim; -// xcim=XFixesGetCursorImage (dpy); -// fprintf(stderr,"XFIXES:\n\n%d %d\n\n\n%d %d\n\n",xcim->width,xcim->height,xcim->xhot,xcim->yhot); -// int i=0,k=0; -// unsigned char *cp=((unsigned char *)xcim->pixels); -// for(i=0;i<xcim->height;i++){ -// for(k=0;k<xcim->width*4;k+=4){ -// fprintf(stderr,"%d",cp[i*xcim->width*4+k]); -// } -// fprintf(stderr,"\n"); -// } - - return 0; } |