summaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-30 20:59:20 +0200
committerDima Zavin <dima@android.com>2011-08-30 20:59:20 +0200
commit4daf48a10bcba1fa92b8b3564504b90807c72274 (patch)
tree897de0abb508786dad7bc9f711712dc2a6a5069e /minui/graphics.c
parentminui: graphics: add ability to query font size (diff)
downloadandroid_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar.gz
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar.bz2
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar.lz
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar.xz
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.tar.zst
android_bootable_recovery-4daf48a10bcba1fa92b8b3564504b90807c72274.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/minui/graphics.c b/minui/graphics.c
index 57ca810f0..fa8e5109a 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
@@ -364,3 +365,12 @@ gr_pixel *gr_fb_data(void)
{
return (unsigned short *) gr_mem_surface.data;
}
+
+void gr_fb_blank(bool blank)
+{
+ int ret;
+
+ ret = ioctl(gr_fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK);
+ if (ret < 0)
+ perror("ioctl(): blank");
+}