- if(!isdigit(cfgopt->str_value[0])) {
- error("%s: error parsing config file %s", __func__, fname);
- return 0;
- }
- gip.x = atoi(cfgopt->str_value);
-
- char *ptr = cfgopt->str_value;
- while(*ptr && *ptr != 'x') *ptr++;
- if(!*ptr || !*(ptr+1) || !isdigit(*(ptr+1))) {
- error("%s: error parsing config file %s", __func__, fname);
- return 0;
+ if(!strcmp(cfgopt->str_value, "dontcare")) {
+ gip.x = 1024;
+ gip.y = 768;
+ gip.dont_care_flags |= DONT_CARE_SIZE;
+ } else {
+ if(!isdigit(cfgopt->str_value[0])) {
+ error("%s: error parsing config file %s", __func__, fname);
+ return 0;
+ }
+ gip.x = atoi(cfgopt->str_value);
+
+ char *ptr = cfgopt->str_value;
+ while(*ptr && *ptr != 'x') ptr++;
+ if(!*ptr || !*(ptr+1) || !isdigit(*(ptr+1))) {
+ error("%s: error parsing config file %s", __func__, fname);
+ return 0;
+ }
+
+ gip.y = atoi(ptr + 1);