diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/console_truetype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 63d7557c71a..6f3fc82f9b0 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -256,7 +256,7 @@ static int console_truetype_putc_xy(struct udevice *dev, uint x, uint y, */ x_shift = xpos - (double)tt_floor(xpos); xpos += advance * met->scale; - width_frac = (int)VID_TO_POS(xpos); + width_frac = (int)VID_TO_POS(advance * met->scale); if (x + width_frac >= vc_priv->xsize_frac) return -EAGAIN; |
