diff options
author | Elliott Hughes <enh@google.com> | 2015-02-12 20:30:32 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-12 20:30:32 +0100 |
commit | 2622ee3efb89c2bb67abf4d1199cd8f158bb1138 (patch) | |
tree | 09bc2c070ee8b84bcd07d3f479283083dc69c665 /minui/graphics.c | |
parent | am adf71bf7: am 5db3f978: Merge "Fix build when TARGET_USERIMAGES_USE_EXT4 is not defined" (diff) | |
parent | am ff934d02: Merge "Fix Droid and animation color in recovery mode" (diff) | |
download | android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar.gz android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar.bz2 android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar.lz android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar.xz android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.tar.zst android_bootable_recovery-2622ee3efb89c2bb67abf4d1199cd8f158bb1138.zip |
Diffstat (limited to 'minui/graphics.c')
-rw-r--r-- | minui/graphics.c | 7 |
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() |