1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-23 00:22:01 +00:00

gfx: Fix off-by-one in right half of 16px rendering

This commit is contained in:
CTCaer 2019-12-16 21:49:54 +02:00
parent 8584493c7f
commit 1ccce5f1a2
2 changed files with 4 additions and 2 deletions

View file

@ -187,7 +187,7 @@ void gfx_putc(char c)
for (u32 i = 0; i < 16; i += 2)
{
u8 v = *cbuf++;
u8 v = *cbuf;
for (u32 k = 0; k < 2; k++)
{
for (u32 j = 0; j < 8; j++)
@ -212,6 +212,7 @@ void gfx_putc(char c)
fb += gfx_ctxt.stride - 16;
v = *cbuf;
}
cbuf++;
}
gfx_con.x += 16;
}

View file

@ -187,7 +187,7 @@ void gfx_putc(char c)
for (u32 i = 0; i < 16; i += 2)
{
u8 v = *cbuf++;
u8 v = *cbuf;
for (u32 k = 0; k < 2; k++)
{
for (u32 j = 0; j < 8; j++)
@ -212,6 +212,7 @@ void gfx_putc(char c)
fb += gfx_ctxt.stride - 16;
v = *cbuf;
}
cbuf++;
}
gfx_con.x += 16;
}