Merge branch 'dev_cheat' of https://gitee.com/anod/open_agb_firm into dev_cheat

This commit is contained in:
anod 2022-09-14 16:45:20 +08:00
commit 63d1b64b08

View File

@ -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) );
}
}
}