]> git.sur5r.net Git - u-boot/commit
video: Use fractional units for X coordinates
authorSimon Glass <sjg@chromium.org>
Fri, 15 Jan 2016 01:10:37 +0000 (18:10 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 30 Jan 2016 09:53:26 +0000 (10:53 +0100)
commitf266178698307608ee23741e69b9626196e66481
treecee098f37679faf65c38592bb1e8f212fa78885f
parent6e42e251964d79117f4b3d16a2352083037a251c
video: Use fractional units for X coordinates

With anti-aliased fonts we need a more fine-grained horizontal position
than a single pixel. Characters can be positioned to start part-way through
a pixel, with anti-aliasing (greyscale edges) taking care of the visual
effect.

To cope with this, use fractional units (1/256 pixel) for horizontal
positions in the text console.

Signed-off-by: Simon Glass <sjg@chromium.org>
[agust: rebased]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/console_normal.c
drivers/video/console_rotate.c
drivers/video/vidconsole-uclass.c
include/video_console.h
test/dm/video.c