From c85375217fbfb5d3c2c2b12e8c13307cd45657fc Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 5 Feb 2017 12:52:35 +0800 Subject: [PATCH] cm: charger: Correct res_create_multi_display_surface() usage Number of frames comes first; frames per second comes after. This fixes commit 7d2b6d238b586ddcfe5a5c3167371165cbcc5f85. Change-Id: I06218a01242a327cbb9be08d3efbb3d1e4cbb217 Issue-Id: LINN-11 --- charger/healthd_board_cm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charger/healthd_board_cm.cpp b/charger/healthd_board_cm.cpp index d82172a4..29168a15 100644 --- a/charger/healthd_board_cm.cpp +++ b/charger/healthd_board_cm.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -301,7 +302,7 @@ void healthd_board_init(struct healthd_config*) // chunk). We are using hard-coded frame.disp_time instead. rc = res_create_multi_display_surface("charger/cm_battery_scale", - &scale_fps, &scale_count, &scale_frames); + &scale_count, &scale_fps, &scale_frames); if (rc < 0) { LOGE("%s: Unable to load battery scale image", __func__); return;