mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-23 02:16:41 +00:00
nyx: Correct double emuMMC values in part manager
This commit is contained in:
parent
e5689cfe57
commit
c5152f6a9d
1 changed files with 10 additions and 5 deletions
|
@ -1678,7 +1678,7 @@ static lv_res_t _action_slider_emu(lv_obj_t *slider)
|
||||||
|
|
||||||
part_info.emu_double = false;
|
part_info.emu_double = false;
|
||||||
|
|
||||||
size = slide_val + 3; // Min 4GB.
|
size = (slide_val > 10 ? (slide_val - 10) : slide_val) + 3; // Min 4GB.
|
||||||
size *= 1024; // Convert to GB.
|
size *= 1024; // Convert to GB.
|
||||||
size += rsvd_mb; // Add reserved size.
|
size += rsvd_mb; // Add reserved size.
|
||||||
|
|
||||||
|
@ -1707,9 +1707,14 @@ static lv_res_t _action_slider_emu(lv_obj_t *slider)
|
||||||
lv_bar_set_value(part_info.slider_bar_hos, hos_size >> 10);
|
lv_bar_set_value(part_info.slider_bar_hos, hos_size >> 10);
|
||||||
|
|
||||||
if (!part_info.emu_double)
|
if (!part_info.emu_double)
|
||||||
|
{
|
||||||
|
if (slide_val != 10)
|
||||||
s_printf(lbl_text, "#FF3C28 %d GiB#", size >> 10);
|
s_printf(lbl_text, "#FF3C28 %d GiB#", size >> 10);
|
||||||
else
|
else
|
||||||
s_printf(lbl_text, "#FFDD00 2x##FF3C28 %d GiB#", size >> 11);
|
s_printf(lbl_text, "#FF3C28 %d FULL#", size >> 10);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
s_printf(lbl_text, "#FFDD00 2x##FF3C28 %d#", size >> 11);
|
||||||
lv_label_set_text(part_info.lbl_emu, lbl_text);
|
lv_label_set_text(part_info.lbl_emu, lbl_text);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue