gfx_animation - simplify code

This commit is contained in:
twinaphex 2021-01-16 20:15:56 +01:00
parent 0946d06e82
commit 991f67a758

View File

@ -510,7 +510,8 @@ static void gfx_animation_ticker_smooth_loop_fw(uint64_t idx,
/* Determine number of characters to copy */
*num_chars_to_copy3 = remaining_width / glyph_width;
*num_chars_to_copy3 = (*num_chars_to_copy3 > num_chars) ? num_chars : *num_chars_to_copy3;
if (*num_chars_to_copy3 > num_chars)
*num_chars_to_copy3 = num_chars;
}
}