当use_canvas的时候,使用真实宽度出现了bug,尝试修正

This commit is contained in:
anod 2022-10-22 22:23:15 +08:00
parent dbcc01176b
commit 4add95926a

View File

@ -328,6 +328,7 @@ acf_canvas_t acf_use_canvas(acf_canvas_t canvas, acf_boolean_t use_rwidth, acf_v
register acf_rectedge_t width = ACFONT_CANVAS_WIDTH(canvas), height = gblfont.height;
register acf_rectedge_t loop_width = use_rwidth ? ACFONT_CANVAS_RWIDTH(canvas) : width;
if( use_rwidth && loop_width > width ) loop_width = width;
for( acf_position_t i=0; i < height; i++ )
{
acf_position_t dy = height - 1 - i;