mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
Merge branch 'dev_cheat' of https://gitee.com/anod/open_agb_firm into dev_cheat
This commit is contained in:
commit
63d1b64b08
@ -292,11 +292,12 @@ static int render_unicode(FHandle fd, int *x, unsigned width, unsigned height, u
|
||||
{
|
||||
for (int j = 0; j < bbx[0]; ++j)
|
||||
{
|
||||
if( 0 <= i && i < (int)height && 0 <= j && j < (int)width )
|
||||
int tx = cx+j, ty = cy-i;
|
||||
if( 0 <= ty && ty < (int)height && 0 <= tx && tx < (int)width )
|
||||
{
|
||||
if( BIT_AT_POS(glyph, bbx[0] * i + j) )
|
||||
{
|
||||
SET_AT_POS( ram, PIX_IN_LINE(cx+j, cy-i, width) );
|
||||
SET_AT_POS( ram, PIX_IN_LINE(tx, ty, width) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user