mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 14:24:12 +08:00
还是修复使用真实宽度的canvas出现的bug
This commit is contained in:
parent
4add95926a
commit
395a7296fb
@ -328,7 +328,6 @@ 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;
|
||||
@ -386,7 +385,7 @@ acf_canvas_t acf_get_canvas(acf_rectedge_t width, acf_text_t text, acf_rectedge_
|
||||
if( rest != NULL ) *rest = utf8_line;
|
||||
|
||||
*canvas = width;
|
||||
*(canvas+1) = linex;
|
||||
*(canvas+1) = linex < width ? linex : width;
|
||||
|
||||
fClose(font);
|
||||
return canvas;
|
||||
|
Loading…
x
Reference in New Issue
Block a user