Lines Matching refs:modes
366 // display modes have precedence
368 if (pScrn->display->modes[0] != NULL) {
370 char *modes;
373 for (mm = 0; pScrn->display->modes[mm] != NULL && !found; mm++) {
374 modes = pScrn->display->modes[mm];
375 if (!strcasecmp(modes, "Auto") || !strcasecmp(modes, "None")) {
381 if (!strcmp(modes, dModes->name)) {
532 if (pScrn->display->modes[0] != NULL) {
534 char *modes;
536 for (mm = 0; pScrn->display->modes[mm] != NULL && !found; mm++) {
537 modes = pScrn->display->modes[mm];
538 if (!strcasecmp(modes, "Auto") || !strcasecmp(modes, "None")) {
539 free(pScrn->display->modes[mm]);
540 pScrn->display->modes[mm] = efb_get_edid_preferred_mode(pScrn, head0);
545 pScrn->display->modes = malloc(2*sizeof(char *));
546 pScrn->display->modes[0] = efb_get_edid_preferred_mode(pScrn, head0);
547 pScrn->display->modes[1] = NULL;
557 mode = strdup(pScrn->display->modes[0]);