mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
gfx: Fix off-by-one in right half of 16px rendering
This commit is contained in:
parent
8584493c7f
commit
1ccce5f1a2
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue