summaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-12 07:21:28 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-12 07:21:28 +0100
commitff934d0257909e9c5420815547a6e2ff89455314 (patch)
tree8b73303ffaa0aa3087367b11748b5b16f5ee2ab0 /minui/graphics.c
parentMerge "Fix build when TARGET_USERIMAGES_USE_EXT4 is not defined" (diff)
parentFix Droid and animation color in recovery mode (diff)
downloadandroid_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar.gz
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar.bz2
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar.lz
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar.xz
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.tar.zst
android_bootable_recovery-ff934d0257909e9c5420815547a6e2ff89455314.zip
Diffstat (limited to 'minui/graphics.c')
-rw-r--r--minui/graphics.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/minui/graphics.c b/minui/graphics.c
index ec39433b8..870ffa089 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -161,10 +161,17 @@ void gr_texticon(int x, int y, GRSurface* icon) {
void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
+#if defined(RECOVERY_ABGR) || defined(RECOVERY_BGRA)
+ gr_current_r = b;
+ gr_current_g = g;
+ gr_current_b = r;
+ gr_current_a = a;
+#else
gr_current_r = r;
gr_current_g = g;
gr_current_b = b;
gr_current_a = a;
+#endif
}
void gr_clear()