diff options
author | Chris Michael <cp.michael@samsung.com> | 2018-01-09 12:43:15 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2018-01-09 12:48:07 -0500 |
commit | 4aeca75cff45748c9ff67e007f408f15ea73709f (patch) | |
tree | d98d62cfc24b32eb797144e93aba2e128ad05ae7 /src/lib | |
parent | fdf0812883b4b9da1ea6e04e26c5fa469bd8920a (diff) |
ecore-drm2: Fix enabling outputs
Commit 9d583b3fdbed686642dbc0d96d1e417485ca0077 broke
ecore_drm2_output_enabled_set function due changing order of setting
output->enabled value. This patch fixes both issues by checking the
'enabled' variable being passed in.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_outputs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index b160d0795a..e33cb2d233 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c | |||
@@ -1175,7 +1175,7 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled) | |||
1175 | if (!output->connected) return; | 1175 | if (!output->connected) return; |
1176 | if (output->enabled == enabled) return; | 1176 | if (output->enabled == enabled) return; |
1177 | 1177 | ||
1178 | if (output->enabled) | 1178 | if (enabled) |
1179 | { | 1179 | { |
1180 | output->enabled = enabled; | 1180 | output->enabled = enabled; |
1181 | ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON); | 1181 | ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON); |