Commit ac8ba84c56ebcb61ce17c2a37898b5a432d333f5
Committed by
Anatolij Gustschin
1 parent
2bc4aa5227
Exists in
master
and in
53 other branches
video: Encapsulate font in video_font_data.h
This patch moves all the font configuration values into video_font_data.h so they are all in the right place with the font. The video_font.h now only includes video_font_data.h and will allow us to select and include different font once more fonts are added. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Anatolij Gustschin <agust@denx.de> [agust: fixed build warning for mcc200] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Showing 6 changed files with 7 additions and 9 deletions Side-by-side Diff
arch/powerpc/cpu/mpc8xx/video.c
... | ... | @@ -109,7 +109,6 @@ |
109 | 109 | /************************************************************************/ |
110 | 110 | |
111 | 111 | #include <video_font.h> /* Get font data, width and height */ |
112 | -#include <video_font_data.h> | |
113 | 112 | |
114 | 113 | #ifdef CONFIG_VIDEO_LOGO |
115 | 114 | #include <video_logo.h> /* Get logo data, width and height */ |
common/lcd.c
... | ... | @@ -51,7 +51,6 @@ |
51 | 51 | /* ** FONT DATA */ |
52 | 52 | /************************************************************************/ |
53 | 53 | #include <video_font.h> /* Get font data, width and height */ |
54 | -#include <video_font_data.h> | |
55 | 54 | |
56 | 55 | /************************************************************************/ |
57 | 56 | /* ** LOGO DATA */ |
drivers/video/cfb_console.c
drivers/video/sed156x.c
include/video_font.h
... | ... | @@ -8,10 +8,7 @@ |
8 | 8 | #ifndef _VIDEO_FONT_ |
9 | 9 | #define _VIDEO_FONT_ |
10 | 10 | |
11 | -#define VIDEO_FONT_CHARS 256 | |
12 | -#define VIDEO_FONT_WIDTH 8 | |
13 | -#define VIDEO_FONT_HEIGHT 16 | |
14 | -#define VIDEO_FONT_SIZE (VIDEO_FONT_CHARS * VIDEO_FONT_HEIGHT) | |
11 | +#include <video_font_data.h> | |
15 | 12 | |
16 | 13 | #endif /* _VIDEO_FONT_ */ |
include/video_font_data.h
No preview for this file type