Lines Matching refs:vstring
433 char *p, *vstring = strdup(str); in set_visual()
441 if (!strcmp(vstring, "ignore") || !strcmp(vstring, "default") in set_visual()
442 || !strcmp(vstring, "")) { in set_visual()
443 free(vstring); in set_visual()
448 if ((p = strchr(vstring, ':')) != NULL) { in set_visual()
462 if (strcmp(vstring, "StaticGray") == 0) { in set_visual()
464 } else if (strcmp(vstring, "GrayScale") == 0) { in set_visual()
466 } else if (strcmp(vstring, "StaticColor") == 0) { in set_visual()
468 } else if (strcmp(vstring, "PseudoColor") == 0) { in set_visual()
470 } else if (strcmp(vstring, "TrueColor") == 0) { in set_visual()
472 } else if (strcmp(vstring, "DirectColor") == 0) { in set_visual()
476 if (sscanf(vstring, "0x%x", &v_in) != 1) { in set_visual()
477 if (sscanf(vstring, "%u", &v_in) == 1) { in set_visual()
482 rfbLog("invalid -visual arg: %s\n", vstring); in set_visual()
487 free(vstring); in set_visual()
498 rfbLog("could not find visual: %s\n", vstring); in set_visual()
502 free(vstring); in set_visual()