Always trigger drmModeSetCrtc
This commit is contained in:
parent
866dbee8cb
commit
ed6d944810
@ -102,18 +102,14 @@ namespace
|
|||||||
if (!initialized)
|
if (!initialized)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Avoid a modeswitch if possible */
|
drmModeSetCrtc(drmNode.fileDescriptor,
|
||||||
if (drmNode.mode != &drmNode.originalCrtc->mode)
|
drmNode.originalCrtc->crtc_id,
|
||||||
drmModeSetCrtc(drmNode.fileDescriptor,
|
drmNode.originalCrtc->buffer_id,
|
||||||
drmNode.originalCrtc->crtc_id,
|
drmNode.originalCrtc->x,
|
||||||
drmNode.originalCrtc->buffer_id,
|
drmNode.originalCrtc->y,
|
||||||
drmNode.originalCrtc->x,
|
&drmNode.connectorId,
|
||||||
drmNode.originalCrtc->y,
|
1,
|
||||||
&drmNode.connectorId,
|
&drmNode.originalCrtc->mode);
|
||||||
1,
|
|
||||||
&drmNode.originalCrtc->mode);
|
|
||||||
else if (getenv("SFML_DRM_DEBUG"))
|
|
||||||
printf("DRM keeping the same mode since using the original one\n");
|
|
||||||
|
|
||||||
drmModeFreeConnector(drmNode.savedConnector);
|
drmModeFreeConnector(drmNode.savedConnector);
|
||||||
drmModeFreeEncoder(drmNode.savedEncoder);
|
drmModeFreeEncoder(drmNode.savedEncoder);
|
||||||
|
Loading…
Reference in New Issue
Block a user