summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index f44bee8..6fe2180 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -993,15 +993,15 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
993 993
994 if (output->enabled) 994 if (output->enabled)
995 { 995 {
996 Ecore_Drm2_Fb *fb; 996 Ecore_Drm2_Fb *fb = NULL;
997 997
998 if (output->current) fb = output->current; 998 if (output->current) fb = output->current;
999 else if (output->next) fb = output->next; 999 else if (output->next) fb = output->next;
1000 1000
1001 drmModeSetCrtc(output->fd, output->crtc_id, fb->id, 1001 if (fb) drmModeSetCrtc(output->fd, output->crtc_id, fb->id,
1002 output->x, output->y, 1002 output->x, output->y,
1003 &output->conn_id, 1, 1003 &output->conn_id, 1,
1004 &output->current_mode->info); 1004 &output->current_mode->info);
1005 1005
1006 ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON); 1006 ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
1007 } 1007 }