Subversion Repositories Kolibri OS

Rev

Rev 6660 | Rev 6937 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6660 Rev 6935
Line 1399... Line 1399...
1399
				    cmd->margins);
1399
				    cmd->margins);
1400
	if (!mode)
1400
	if (!mode)
1401
		return NULL;
1401
		return NULL;
Line 1402... Line 1402...
1402
 
1402
 
-
 
1403
	mode->type |= DRM_MODE_TYPE_USERDEF;
-
 
1404
	/* fix up 1368x768: GFT/CVT can't express 1366 width due to alignment */
-
 
1405
	if (cmd->xres == 1366 && mode->hdisplay == 1368) {
-
 
1406
		mode->hdisplay = 1366;
-
 
1407
		mode->hsync_start--;
-
 
1408
		mode->hsync_end--;
-
 
1409
		drm_mode_set_name(mode);
1403
	mode->type |= DRM_MODE_TYPE_USERDEF;
1410
	}
1404
	drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
1411
	drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
1405
	return mode;
1412
	return mode;
1406
}
1413
}