diff options
Diffstat (limited to 'hwc2_device/HwcDisplayConfigs.h')
-rw-r--r-- | hwc2_device/HwcDisplayConfigs.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/hwc2_device/HwcDisplayConfigs.h b/hwc2_device/HwcDisplayConfigs.h index 7c173d6..98067c1 100644 --- a/hwc2_device/HwcDisplayConfigs.h +++ b/hwc2_device/HwcDisplayConfigs.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef ANDROID_HWC2_DEVICE_HWC_DISPLAY_CONFIGS_H -#define ANDROID_HWC2_DEVICE_HWC_DISPLAY_CONFIGS_H +#pragma once #include <hardware/hwcomposer2.h> @@ -30,11 +29,11 @@ class DrmConnector; struct HwcDisplayConfig { uint32_t id{}; uint32_t group_id{}; - DrmMode mode; + DrmMode mode{}; bool disabled{}; bool IsInterlaced() const { - return (mode.flags() & DRM_MODE_FLAG_INTERLACE) != 0; + return (mode.GetRawMode().flags & DRM_MODE_FLAG_INTERLACE) != 0; } }; @@ -55,5 +54,3 @@ struct HwcDisplayConfigs { }; } // namespace android - -#endif |