vidconsole: Avoid kerning against an unrelated character
authorSimon Glass <sjg@chromium.org>
Tue, 1 Apr 2025 17:29:44 +0000 (06:29 +1300)
committerTom Rini <trini@konsulko.com>
Fri, 2 May 2025 19:40:25 +0000 (13:40 -0600)
commit7703cfe025cbbb2277498483304b4db958521d9e
tree297fb9e724f252a3fdb46ee28348e66ff7c05a96
parentf94f1f4b8ce62855693b4b48356f7e8d229b3fa4
vidconsole: Avoid kerning against an unrelated character

When the cursor position changes, kerning should not be used for the
next character, since it can make the first displayed character shuffle
left or right a bit.

Clear the kern character when setting the position.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_truetype.c
drivers/video/vidconsole-uclass.c