diff options
author | Ulf Jordan <jordan@chalmers.se> | 2008-08-11 20:35:32 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-08-11 20:35:32 +0000 |
commit | d133d9a23077e30f57014ab84633b7a0c4dc2518 (patch) | |
tree | 566a3a3190aaf0dff5a5ca3a25ea13ac4504fc1a | |
parent | cc8a9934dff6d5b2c219f4cf3ba37988a56087b7 (diff) |
This patch updates coreinfo to use the ACS_ macros for line graphics.
Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3501 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | payloads/coreinfo/coreinfo.c | 2 | ||||
-rw-r--r-- | payloads/coreinfo/lar_module.c | 2 | ||||
-rw-r--r-- | payloads/coreinfo/nvram_module.c | 4 | ||||
-rw-r--r-- | payloads/coreinfo/pci_module.c | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index aa8be10eae..b9da49efd0 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -89,7 +89,7 @@ void print_module_title(WINDOW *win, const char *title) wmove(win, 1, 1); for (i = 0; i < 78; i++) - waddch(win, '\304'); + waddch(win, ACS_HLINE); } static void print_submenu(struct coreinfo_cat *cat) diff --git a/payloads/coreinfo/lar_module.c b/payloads/coreinfo/lar_module.c index 5333bf37e7..151d876fb1 100644 --- a/payloads/coreinfo/lar_module.c +++ b/payloads/coreinfo/lar_module.c @@ -66,7 +66,7 @@ static int lar_module_redraw(WINDOW *win) /* Draw a line down the middle. */ for (i = 2; i < 21; i++) - mvwaddch(win, i, 30, '\263'); + mvwaddch(win, i, 30, ACS_VLINE); /* Draw the names down the left side. */ for (i = 0; i < lcount; i++) { diff --git a/payloads/coreinfo/nvram_module.c b/payloads/coreinfo/nvram_module.c index 2c09f38d89..52f127af88 100644 --- a/payloads/coreinfo/nvram_module.c +++ b/payloads/coreinfo/nvram_module.c @@ -36,9 +36,9 @@ static void dump_nvram(WINDOW *win, int row, int col) /* Print vertical and horizontal line. */ for (i = 0; i < 18; i++) - mvwaddch(win, 3 + i, 3, '\263'); + mvwaddch(win, 3 + i, 3, ACS_VLINE); for (i = 0; i < 48; i++) - mvwaddch(win, 3, 3 + i, (i == 0) ? '\332' : '\304'); + mvwaddch(win, 3, 3 + i, (i == 0) ? ACS_ULCORNER : ACS_HLINE); /* Dump NVRAM contents. */ for (i = 1; i < 257; i++) { diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c index b2cd8a01f5..d2c0591389 100644 --- a/payloads/coreinfo/pci_module.c +++ b/payloads/coreinfo/pci_module.c @@ -144,11 +144,11 @@ static int pci_module_redraw(WINDOW *win) if (i == 0) { if (item != 0) - mvwprintw(win, 2 + i, 19, "\30"); + mvwaddch(win, 2 + i, 19, ACS_UARROW); } if (i == MENU_VISIBLE - 1) { if ((item + 1) < devices_index) - mvwprintw(win, 2 + i, 19, "\31"); + mvwaddch(win, 2 + i, 19, ACS_DARROW); } } @@ -160,12 +160,12 @@ static int pci_module_redraw(WINDOW *win) wmove(win, 3, 25); for (i = 0; i < 48; i++) - waddch(win, (i == 0) ? '\332' : '\304'); + waddch(win, (i == 0) ? ACS_ULCORNER : ACS_HLINE); for (i = 0; i < 4; i++) { mvwprintw(win, 4 + i, 23, "%2.2X", i * 16); wmove(win, 4 + i, 25); - waddch(win, '\263'); + waddch(win, ACS_VLINE); } show_config_space(win, 4, 26, menu_selected); |