add: }  if (vdisplay) { vdpy = XOpenDisplay(vdisplay); if (!vdpy) { puts("couldnt open display to be viewed"); exit(1); } } else { vdpy = dpy;
context: int main(int argc, char **argv){    BufferData *data;    int i;    char *display = "";    int magfactor = 2;#if 0    WMButton *radio, *tradio;#endif    WMInitializeApplication("Magnify", &argc, argv);            for (i = 1; i < argc; i++) {	if (strcmp(argv[i], "-display")==0) {	    i++;	    if (i >= argc)		goto help;	    display = argv[i];	} else if (strcmp(argv[i], "-m")==0) {	    i++;	    if (i >= argc)		goto help;	    magfactor = atoi(argv[i]);	    if (magfactor < 1 || magfactor > 32) {		printf("%s:invalid magnification factor ``%s''\n", argv[0],		       argv[i]);		exit(1);	    }	} else if (strcmp(argv[i], "-r")==0) {	    i++;	    if (i >= argc)		goto help;	    refreshrate = atoi(argv[i]);	    if (refreshrate < 1) {		printf("%s:invalid refresh rate ``%s''\n", argv[0], argv[i]);		exit(1);	    }	} else if (strcmp(argv[i], "-h")==0 		   || strcmp(argv[i], "--help")==0) {	help:	    printf("Syntax: %s [options]\n",		   argv[0]);	    puts("Options:");	    puts("  -display <display>	display that should be used");	    puts("  -m <number>		change magnification factor (default 2)");	    puts("  -r <number>		change refresh delay, in milliseconds (default 200)");	    puts("Keys:");	    puts("  1,2,3,4,5,6,7,8,9	change the magnification factor");	    puts("  <space>, f		freeze the 'camera', making it magnify only the current\n"		 "			position");	    puts("  n			create a new window");	    puts("  m			show/hide the pointer hotspot mark");	    exit(0);	}    }    dpy = XOpenDisplay("");    if (!dpy) {	puts("couldnt open display");	exit(1);    }    /* calculate how many rectangles we can send in a trip to the server */    rectBufferSize = XMaxRequestSize(dpy) - 128;    rectBufferSize /= sizeof(XRectangle);    if (rectBufferSize < 1)	rectBufferSize = 1;    black = BlackPixel(dpy, DefaultScreen(dpy));    scr = WMCreateScreen(dpy, 0);    cursorColor1 = WMCreateNamedColor(scr, "#ff0000", False);    cursorColor2 = WMCreateNamedColor(scr, "#00ff00", False);        data = newWindow(magfactor);    WMScreenMainLoop(scr);    return 0;}