summaryrefslogtreecommitdiffstats
path: root/hwc/hwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwc/hwc.c')
-rw-r--r--hwc/hwc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index d4b60df..990a2ce 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -63,6 +63,14 @@
#define NUM_EXT_DISPLAY_BACK_BUFFERS 2
#define ASPECT_RATIO_TOLERANCE 0.02f
+/* copied from: KK bionic/libc/kernel/common/linux/fb.h */
+#ifndef FB_FLAG_RATIO_4_3
+#define FB_FLAG_RATIO_4_3 64
+#endif
+#ifndef FB_FLAG_RATIO_16_9
+#define FB_FLAG_RATIO_16_9 128
+#endif
+
/* used by property settings */
enum {
EXT_ROTATION = 3, /* rotation while mirroring */