summaryrefslogtreecommitdiffstats
path: root/minui/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-08-01 06:32:50 +0200
committerTao Bao <tbao@google.com>2018-08-02 00:36:41 +0200
commited876a7175c54a68735e8bcacd1a22cbc84034ed (patch)
tree62857f4b3ef659dcbf137c6c917e23ee029e3dd6 /minui/include
parentMerge "minui: Clean up the use of `rotation`." (diff)
downloadandroid_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar.gz
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar.bz2
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar.lz
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar.xz
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.tar.zst
android_bootable_recovery-ed876a7175c54a68735e8bcacd1a22cbc84034ed.zip
Diffstat (limited to 'minui/include')
-rw-r--r--minui/include/minui/minui.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h
index 97660d476..fa13ecdff 100644
--- a/minui/include/minui/minui.h
+++ b/minui/include/minui/minui.h
@@ -48,6 +48,13 @@ enum class GRRotation : int {
LEFT = 3,
};
+enum class PixelFormat : int {
+ UNKNOWN = 0,
+ ABGR = 1,
+ RGBX = 2,
+ BGRA = 3,
+};
+
// Initializes the graphics backend and loads font file. Returns 0 on success, or -1 on error. Note
// that the font initialization failure would be non-fatal, as caller may not need to draw any text
// at all. Caller can check the font initialization result via gr_sys_font() as needed.
@@ -85,6 +92,9 @@ unsigned int gr_get_height(const GRSurface* surface);
// Sets rotation, flips gr_fb_width/height if 90 degree rotation difference
void gr_rotate(GRRotation rotation);
+// Returns the current PixelFormat being used.
+PixelFormat gr_pixel_format();
+
//
// Input events.
//