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>
Showing
- drivers/video/console_normal.c 22 additions, 2 deletionsdrivers/video/console_normal.c
- drivers/video/console_rotate.c 49 additions, 16 deletionsdrivers/video/console_rotate.c
- drivers/video/vidconsole-uclass.c 33 additions, 24 deletionsdrivers/video/vidconsole-uclass.c
- include/video_console.h 31 additions, 9 deletionsinclude/video_console.h
- test/dm/video.c 2 additions, 2 deletionstest/dm/video.c
Loading
Please register or sign in to comment