summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorHashcode <hashcode0f@gmail.com>2014-11-25 14:27:05 -0800
committerHashcode <hashcode0f@gmail.com>2015-02-02 15:49:17 -0800
commit3f8520d44b363b386d60f889f199ead2c1bd88df (patch)
tree92858903b8110c939acb2549631e7ac5a9110bfe /hwc
parentd7450466dcedf2ef91ea0b135056f2d46ce5438e (diff)
downloadhardware_ti_omap4-3f8520d44b363b386d60f889f199ead2c1bd88df.zip
hardware_ti_omap4-3f8520d44b363b386d60f889f199ead2c1bd88df.tar.gz
hardware_ti_omap4-3f8520d44b363b386d60f889f199ead2c1bd88df.tar.bz2
hwc: add missing bionic defines for fb ratio flags
Diffstat (limited to 'hwc')
-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 */