summaryrefslogtreecommitdiffstats
path: root/minuitwrp/graphics.c
diff options
context:
space:
mode:
authorKra1o5 <kra1o5x@gmail.com>2015-06-24 12:19:09 +0200
committerKra1o5 <kra1o5x@gmail.com>2015-06-29 19:42:40 +0200
commitc9556ccb5eacf7717e62af89d1a367717e2a62fe (patch)
tree503a493eec5584088f63e0df99336e04a2c8679f /minuitwrp/graphics.c
parent2.8.7.0 (diff)
downloadandroid_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar.gz
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar.bz2
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar.lz
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar.xz
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.tar.zst
android_bootable_recovery-c9556ccb5eacf7717e62af89d1a367717e2a62fe.zip
Diffstat (limited to 'minuitwrp/graphics.c')
-rw-r--r--minuitwrp/graphics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c
index 704389fdf..04c41fb54 100644
--- a/minuitwrp/graphics.c
+++ b/minuitwrp/graphics.c
@@ -295,8 +295,12 @@ static int get_framebuffer(GGLSurface *fb)
fb++;
+#ifndef TW_DISABLE_DOUBLE_BUFFERING
/* check if we can use double buffering */
if (vi.yres * fi.line_length * 2 > fi.smem_len)
+#else
+ printf("TW_DISABLE_DOUBLE_BUFFERING := true\n");
+#endif
return fd;
double_buffering = 1;