nyx: gfx: add column control

gfx_getpos/setpos can now get/set column offset.
setpos column can be fully custom. Otherwise GFX_COL_KEEP or GFX_COL_AUTO (2 columns) can be used.

Additionally, always restore column when printing debug info in log screen.
This commit is contained in:
CTCaer
2023-08-07 21:09:37 +03:00
parent f2bdc3f47c
commit 6de29094fe
4 changed files with 61 additions and 41 deletions

View File

@@ -348,7 +348,7 @@ static void _show_errors(int sd_error)
if (*excp_enabled == EXCP_MAGIC || sd_error)
{
gfx_clear_grey(0);
gfx_con_setpos(0, 0);
gfx_con_setpos(0, 0, 0);
display_backlight_brightness(150, 1000);
display_init_framebuffer_log();
display_activate_console();