summaryrefslogtreecommitdiffstats
path: root/minuitwrp/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-07-30 00:42:36 +0200
committerDees Troy <dees_troy@teamw.in>2016-08-19 17:19:38 +0200
commit4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614 (patch)
tree50620e4c7226653ebb56ea4780b8c5613b1a883c /minuitwrp/graphics_fbdev.cpp
parentMake input whitelist and blacklist work for mouse devices too (diff)
downloadandroid_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar.gz
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar.bz2
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar.lz
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar.xz
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.tar.zst
android_bootable_recovery-4a71d4f6c7f5d1ae835249418bdda7e6ac4fe614.zip
Diffstat (limited to 'minuitwrp/graphics_fbdev.cpp')
-rw-r--r--minuitwrp/graphics_fbdev.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/minuitwrp/graphics_fbdev.cpp b/minuitwrp/graphics_fbdev.cpp
index 3402cbae3..a1c42d05c 100644
--- a/minuitwrp/graphics_fbdev.cpp
+++ b/minuitwrp/graphics_fbdev.cpp
@@ -249,6 +249,7 @@ static GRSurface* fbdev_init(minui_backend* backend) {
}
/* check if we can use double buffering */
+#ifndef RECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER
if (vi.yres * fi.line_length * 2 <= fi.smem_len) {
double_buffered = true;
printf("double buffered\n");
@@ -258,6 +259,10 @@ static GRSurface* fbdev_init(minui_backend* backend) {
gr_framebuffer[0].height * gr_framebuffer[0].row_bytes;
} else {
+#else
+ {
+ printf("RECOVERY_GRAPHICS_FORCE_SINGLE_BUFFER := true\n");
+#endif
double_buffered = false;
printf("single buffered\n");
}