aboutsummaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-03-17 12:10:02 -0700
committerDoug Zongker <dougz@google.com>2014-03-17 12:27:08 -0700
commita418aa7dd5e94cbf1ab2a6fa1c63f60e5e087d42 (patch)
tree629541c511f84bd4c42ef3de7ad099001874f05c /minui/graphics.c
parent026ebe0214d6c1c9b3ddc22c35e9ac37e5f622bc (diff)
downloadbootable_recovery-a418aa7dd5e94cbf1ab2a6fa1c63f60e5e087d42.zip
bootable_recovery-a418aa7dd5e94cbf1ab2a6fa1c63f60e5e087d42.tar.gz
bootable_recovery-a418aa7dd5e94cbf1ab2a6fa1c63f60e5e087d42.tar.bz2
refactor image resource loading code in minui
Reduce the number of copies of libpng boilerplate. Rename res_create_* functions to be more clear. Make explicit the use of the framebuffer pixel format for images, and handle more combinations of input and output (eg, loading a grayscale image for display rather than use as a text alpha channel). Change-Id: I3d41c800a8f4c22b2f0167967ce6ee4d6b2b8846
Diffstat (limited to 'minui/graphics.c')
-rw-r--r--minui/graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/graphics.c b/minui/graphics.c
index f8ffa89..32b3361 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -269,7 +269,7 @@ static void gr_init_font(void)
{
gr_font = calloc(sizeof(*gr_font), 1);
- int res = res_create_surface("font", &(gr_font->texture));
+ int res = res_create_alpha_surface("font", &(gr_font->texture));
if (res == 0) {
// The font image should be a 96x2 array of character images. The
// columns are the printable ASCII characters 0x20 - 0x7f. The