From 0db80236f387aed9740f9765a65699827660059d Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 16 Dec 2015 10:57:10 -0800 Subject: [PATCH] healthd: Track the API change of res_create_multi_display_surface(). CL in [1] changes the minui API of res_create_multi_display_surface() (bootable/recovery/minui/minui.h). Track the change accordingly. [1] commit b723f4f38f53a38502abb1a63165ac0749bc9cd9 Change-Id: If9684019105ff91d5ade5b69e88849af766c2a19 --- healthd/healthd_mode_charger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp index 6800ad277..46bad4ef9 100644 --- a/healthd/healthd_mode_charger.cpp +++ b/healthd/healthd_mode_charger.cpp @@ -699,7 +699,10 @@ void healthd_mode_charger_init(struct healthd_config* config) GRSurface** scale_frames; int scale_count; - ret = res_create_multi_display_surface("charger/battery_scale", &scale_count, &scale_frames); + int scale_fps; // Not in use (charger/battery_scale doesn't have FPS text + // chunk). We are using hard-coded frame.disp_time instead. + ret = res_create_multi_display_surface("charger/battery_scale", &scale_count, &scale_fps, + &scale_frames); if (ret < 0) { LOGE("Cannot load battery_scale image\n"); charger->batt_anim->num_frames = 0;