Implement "take a screenshot" feature
* Like in android - press power+volume down, screenshots are saved
in /sdcard/Pictures/Screenshots (if /sdcard is mounted) or /tmp
Change-Id: Iaefa15b11a1d5fdfac57d77388db1621f378a8d4
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h
index cf90532..f04f518 100644
--- a/minuitwrp/minui.h
+++ b/minuitwrp/minui.h
@@ -52,6 +52,8 @@
int gr_get_surface(gr_surface* surface);
int gr_free_surface(gr_surface surface);
+int gr_save_screenshot(const char *dest);
+
// input event structure, include <linux/input.h> for the definition.
// see http://www.mjmwired.net/kernel/Documentation/input/ for info.
struct input_event;