mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
Revert "rosemary: lights: Adapt brightness scaling behaviour to match MIUI"
This reverts commit 6ce8341120.
Change-Id: Iad650d6a5fa47371c0bc3e1d5922dcc041be3d47
This commit is contained in:
@@ -86,7 +86,7 @@ static inline uint32_t scaleBrightness(uint32_t brightness, uint32_t maxBrightne
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (brightness - 1) * (maxBrightness - 19) / (0xFF - 1) + 19;
|
||||
return (brightness - 1) * (maxBrightness - 1) / (0xFF - 1) + 1;
|
||||
}
|
||||
|
||||
static inline uint32_t getScaledBrightness(const HwLightState& state, uint32_t maxBrightness) {
|
||||
|
||||
Reference in New Issue
Block a user