Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d012b00c authored by Steve Kondik's avatar Steve Kondik
Browse files

livedisplay: Round values up

 * So that we're sure to disable postproc kernel-side at 6500K.

Change-Id: I7dfc119125f9fe6e1857b39547402188f824d1b9
parent 675f6626
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -306,7 +306,9 @@ public class LiveDisplayController {

            int max = mCmHardwareManager.getDisplayColorCalibrationMax();
            mCmHardwareManager.setDisplayColorCalibration(new int[] {
                (int) (rgb[0] * max), (int) (rgb[1] * max), (int) (rgb[2] * max)
                (int) Math.ceil(rgb[0] * max),
                (int) Math.ceil(rgb[1] * max),
                (int) Math.ceil(rgb[2] * max)
            });
            screenRefresh();
        } else {