From 5a95c3ff415dd3b00b68aa2e7f662f9852f49c18 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 7 Nov 2014 13:32:55 -0600 Subject: Disable custom theme and fix png loading We will have to update the zip handling later. Now at least TWRP boots up to the GUI. Change-Id: I4182896eb095cab52fb0f1c9c20b6605e35677b9 --- minuitwrp/resources.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'minuitwrp/resources.c') diff --git a/minuitwrp/resources.c b/minuitwrp/resources.c index 3b833cc70..4dd10a9de 100644 --- a/minuitwrp/resources.c +++ b/minuitwrp/resources.c @@ -100,10 +100,10 @@ int res_create_surface_png(const char* name, gr_surface* pSurface) { int color_type, bit_depth; size_t width, height; - png_get_IHDR(png_ptr, info_ptr, width, height, &bit_depth, + png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, NULL, NULL, NULL); - png_byte* channels = png_get_channels(png_ptr, info_ptr); + png_byte channels = png_get_channels(png_ptr, info_ptr); size_t stride = 4 * width; size_t pixelSize = stride * height; -- cgit v1.2.3