From 62b4517f1d811efaaf1a4d31178f9efd973ed4fe Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Fri, 16 Dec 2016 14:36:43 +0530 Subject: [PATCH] [platforms/hwcomposer] Use enum instead of the number for readable code Summary: Enums taken from hardware/hwcomposer_defs.h header file Test Plan: builds Reviewers: #kwin, graesslin, mart Reviewed By: mart Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3699 --- plugins/platforms/hwcomposer/hwcomposer_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/platforms/hwcomposer/hwcomposer_backend.cpp b/plugins/platforms/hwcomposer/hwcomposer_backend.cpp index 167dfe0290..701d69838b 100644 --- a/plugins/platforms/hwcomposer/hwcomposer_backend.cpp +++ b/plugins/platforms/hwcomposer/hwcomposer_backend.cpp @@ -320,7 +320,7 @@ void HwcomposerBackend::toggleBlankOutput() #if defined(HWC_DEVICE_API_VERSION_1_4) || defined(HWC_DEVICE_API_VERSION_1_5) if (m_hwcVersion > HWC_DEVICE_API_VERSION_1_3) - m_device->setPowerMode(m_device, 0, m_outputBlank ? 0 : 2); + m_device->setPowerMode(m_device, 0, m_outputBlank ? HWC_POWER_MODE_OFF : HWC_POWER_MODE_NORMAL); else #endif m_device->blank(m_device, 0, m_outputBlank ? 1 : 0);