Skip to content
Snippets Groups Projects
Commit c8537521 authored by Zhao Wei Liew's avatar Zhao Wei Liew
Browse files

cm: charger: Correct res_create_multi_display_surface() usage

Number of frames comes first; frames per second comes after.

This fixes commit 7d2b6d23.

Change-Id: I06218a01242a327cbb9be08d3efbb3d1e4cbb217
Issue-Id: LINN-11
parent 9641864e
No related branches found
No related tags found
No related merge requests found
/*
* 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment