Skip to content
Commit 19354d27 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

console: Correct truetype spacing error



The putc_xy() method is supposed to return the amount of space used. The
existing implementation erroneously adds the previous sub-pixel position
to the returned value. This spaces out the characters very slightly more
than it should. It is seldom noticeable but it does make accurate
measurement of the text impossible.

Fix this minor but long-standing bug.

Fixes: a29b0120 ("video: Add a console driver that uses TrueType fonts")

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 4eba9c3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment