1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-10-06 06:29:43 +00:00

hekate/nyx: stylistic and copyright updates

This commit is contained in:
CTCaer 2023-02-22 13:04:42 +02:00
parent c279fa2521
commit a44a4881d4
6 changed files with 12 additions and 12 deletions

View File

@ -430,17 +430,17 @@ void gfx_hexdump(u32 base, const void *buf, u32 len)
u8 prevFontSize = gfx_con.fntsz; u8 prevFontSize = gfx_con.fntsz;
gfx_con.fntsz = 8; gfx_con.fntsz = 8;
for(u32 i = 0; i < len; i++) for (u32 i = 0; i < len; i++)
{ {
if(i % 0x10 == 0) if (i % 0x10 == 0)
{ {
if(i != 0) if (i != 0)
{ {
gfx_puts("| "); gfx_puts("| ");
for(u32 j = 0; j < 0x10; j++) for (u32 j = 0; j < 0x10; j++)
{ {
u8 c = buff[i - 0x10 + j]; u8 c = buff[i - 0x10 + j];
if(c >= 32 && c <= 126) if (c >= 32 && c <= 126)
gfx_putc(c); gfx_putc(c);
else else
gfx_putc('.'); gfx_putc('.');
@ -461,10 +461,10 @@ void gfx_hexdump(u32 base, const void *buf, u32 len)
gfx_puts(" "); gfx_puts(" ");
} }
gfx_puts("| "); gfx_puts("| ");
for(u32 j = 0; j < (ln ? k : k + 1); j++) for (u32 j = 0; j < (ln ? k : k + 1); j++)
{ {
u8 c = buff[i - k + j]; u8 c = buff[i - k + j];
if(c >= 32 && c <= 126) if (c >= 32 && c <= 126)
gfx_putc(c); gfx_putc(c);
else else
gfx_putc('.'); gfx_putc('.');

View File

@ -133,7 +133,7 @@ void *tui_do_menu(menu_t *menu)
gfx_printf("%k %s", menu->ents[cnt].color, menu->ents[cnt].caption); gfx_printf("%k %s", menu->ents[cnt].color, menu->ents[cnt].caption);
else if (menu->ents[cnt].type != MENT_CHGLINE) else if (menu->ents[cnt].type != MENT_CHGLINE)
gfx_printf(" %s", menu->ents[cnt].caption); gfx_printf(" %s", menu->ents[cnt].caption);
if(menu->ents[cnt].type == MENT_MENU) if (menu->ents[cnt].type == MENT_MENU)
gfx_printf("%k...", TXT_CLR_CYAN_L); gfx_printf("%k...", TXT_CLR_CYAN_L);
gfx_printf(" \n"); gfx_printf(" \n");
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2021 CTCaer * Copyright (c) 2018-2023 CTCaer
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2021 CTCaer * Copyright (c) 2018-2023 CTCaer
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2018 naehrwert * Copyright (c) 2018 naehrwert
* Copyright (c) 2018-2022 CTCaer * Copyright (c) 2018-2023 CTCaer
* Copyright (c) 2018 balika011 * Copyright (c) 2018 balika011
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2018 naehrwert * Copyright (c) 2018 naehrwert
* Copyright (c) 2018-2022 CTCaer * Copyright (c) 2018-2023 CTCaer
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,