mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 03:11:16 +00:00
hekate/nyx: adhere to display function renames
This commit is contained in:
parent
48ef1826e9
commit
21d782587f
3 changed files with 8 additions and 8 deletions
|
@ -1297,7 +1297,7 @@ static void _check_low_battery()
|
||||||
if (!screen_on)
|
if (!screen_on)
|
||||||
{
|
{
|
||||||
display_init();
|
display_init();
|
||||||
u32 *fb = display_init_framebuffer_pitch();
|
u32 *fb = display_init_window_a_pitch();
|
||||||
gfx_init_ctxt(fb, 720, 1280, 720);
|
gfx_init_ctxt(fb, 720, 1280, 720);
|
||||||
|
|
||||||
gfx_set_rect_rgb(battery_icon, BATTERY_EMPTY_WIDTH, BATTERY_EMPTY_BATT_HEIGHT, 16, battery_icon_y_pos);
|
gfx_set_rect_rgb(battery_icon, BATTERY_EMPTY_WIDTH, BATTERY_EMPTY_BATT_HEIGHT, 16, battery_icon_y_pos);
|
||||||
|
@ -1540,7 +1540,7 @@ void ipl_main()
|
||||||
|
|
||||||
skip_lp0_minerva_config:
|
skip_lp0_minerva_config:
|
||||||
// Initialize display window, backlight and gfx console.
|
// Initialize display window, backlight and gfx console.
|
||||||
u32 *fb = display_init_framebuffer_pitch();
|
u32 *fb = display_init_window_a_pitch();
|
||||||
gfx_init_ctxt(fb, 720, 1280, 720);
|
gfx_init_ctxt(fb, 720, 1280, 720);
|
||||||
gfx_con_init();
|
gfx_con_init();
|
||||||
|
|
||||||
|
|
|
@ -108,10 +108,10 @@ static void _nyx_disp_init()
|
||||||
vic_compose();
|
vic_compose();
|
||||||
|
|
||||||
// Switch to new window configuration.
|
// Switch to new window configuration.
|
||||||
display_init_framebuffer_pitch_vic();
|
display_init_window_a_pitch_vic();
|
||||||
|
|
||||||
// Enable logging on window D.
|
// Enable logging on window D.
|
||||||
display_init_framebuffer_log();
|
display_init_window_d_console();
|
||||||
// Switch back the backlight.
|
// Switch back the backlight.
|
||||||
display_backlight_brightness(h_cfg.backlight - 20, 1000);
|
display_backlight_brightness(h_cfg.backlight - 20, 1000);
|
||||||
}
|
}
|
||||||
|
@ -464,7 +464,7 @@ static bool _jc_virt_mouse_read(lv_indev_data_t *data)
|
||||||
{
|
{
|
||||||
if (!console_enabled)
|
if (!console_enabled)
|
||||||
{
|
{
|
||||||
display_activate_console();
|
display_window_d_console_enable();
|
||||||
console_enabled = true;
|
console_enabled = true;
|
||||||
gfx_con_getpos(&gfx_con.savedx, &gfx_con.savedy, &gfx_con.savedcol);
|
gfx_con_getpos(&gfx_con.savedx, &gfx_con.savedy, &gfx_con.savedcol);
|
||||||
gfx_con_setpos(964, 630, GFX_COL_AUTO);
|
gfx_con_setpos(964, 630, GFX_COL_AUTO);
|
||||||
|
@ -473,7 +473,7 @@ static bool _jc_virt_mouse_read(lv_indev_data_t *data)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
display_deactivate_console();
|
display_window_d_console_disable();
|
||||||
console_enabled = false;
|
console_enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -354,8 +354,8 @@ static void _show_errors(int sd_error)
|
||||||
gfx_clear_grey(0);
|
gfx_clear_grey(0);
|
||||||
gfx_con_setpos(0, 0, 0);
|
gfx_con_setpos(0, 0, 0);
|
||||||
display_backlight_brightness(150, 1000);
|
display_backlight_brightness(150, 1000);
|
||||||
display_init_framebuffer_log();
|
display_init_window_d_console();
|
||||||
display_activate_console();
|
display_window_d_console_enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (sd_error)
|
switch (sd_error)
|
||||||
|
|
Loading…
Reference in a new issue