hekate/nyx: stylistic corrections

This commit is contained in:
CTCaer
2023-02-11 23:51:43 +02:00
parent 9a98c1afb9
commit 5193416658
11 changed files with 53 additions and 51 deletions

View File

@@ -449,17 +449,17 @@ void gfx_hexdump(u32 base, const void *buf, u32 len)
u8 prevFontSize = gfx_con.fntsz;
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("| ");
for(u32 j = 0; j < 0x10; j++)
for (u32 j = 0; j < 0x10; j++)
{
u8 c = buff[i - 0x10 + j];
if(c >= 32 && c <= 126)
if (c >= 32 && c <= 126)
gfx_putc(c);
else
gfx_putc('.');
@@ -480,10 +480,10 @@ void gfx_hexdump(u32 base, const void *buf, u32 len)
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];
if(c >= 32 && c <= 126)
if (c >= 32 && c <= 126)
gfx_putc(c);
else
gfx_putc('.');