diff options
author | Doug Zongker <dougz@android.com> | 2014-03-12 03:42:57 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-12 03:42:57 +0100 |
commit | cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f (patch) | |
tree | fcabf54bb6676e3e34a33d16ab79a15c11c2f661 /minui/minui.h | |
parent | am 8f087d02: Merge "update tools for making recovery images" (diff) | |
parent | Merge "remove pixelflinger from recovery" (diff) | |
download | android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar.gz android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar.bz2 android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar.lz android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar.xz android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.tar.zst android_bootable_recovery-cb1bdc9e427b8b7262d1e56fef47d2bb6d76139f.zip |
Diffstat (limited to 'minui/minui.h')
-rw-r--r-- | minui/minui.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/minui/minui.h b/minui/minui.h index 5c0defc40..cb930cc4f 100644 --- a/minui/minui.h +++ b/minui/minui.h @@ -23,22 +23,30 @@ extern "C" { #endif -typedef void* gr_surface; -typedef unsigned short gr_pixel; +typedef struct { + int width; + int height; + int row_bytes; + int pixel_bytes; + unsigned char* data; +} GRSurface; + +typedef GRSurface* gr_surface; int gr_init(void); void gr_exit(void); int gr_fb_width(void); int gr_fb_height(void); -gr_pixel *gr_fb_data(void); + void gr_flip(void); void gr_fb_blank(bool blank); +void gr_clear(); // clear entire surface to current color void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a); void gr_fill(int x1, int y1, int x2, int y2); -int gr_text(int x, int y, const char *s, int bold); - void gr_texticon(int x, int y, gr_surface icon); +void gr_text(int x, int y, const char *s, int bold); +void gr_texticon(int x, int y, gr_surface icon); int gr_measure(const char *s); void gr_font_size(int *x, int *y); |