diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-05 10:23:00 -0700 |
---|---|---|
committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-05 10:23:00 -0700 |
commit | b6474284a9543dfd65d1e71996af9497e0215006 (patch) | |
tree | da586595c0dfce00f73ff5b790216e6951b9e39a /com32/cmenu/libmenu/tui.c | |
parent | bb20566b9561f58bdf042e29c99f4ccfc78aaf18 (diff) | |
download | syslinux-b6474284a9543dfd65d1e71996af9497e0215006.tar.gz syslinux-b6474284a9543dfd65d1e71996af9497e0215006.tar.xz syslinux-b6474284a9543dfd65d1e71996af9497e0215006.zip |
cmenu: remove legacy box drawing code
Lines are now printed via the Line Drawing Character Set.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu/libmenu/tui.c')
-rw-r--r-- | com32/cmenu/libmenu/tui.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/com32/cmenu/libmenu/tui.c b/com32/cmenu/libmenu/tui.c index e256502a..ecc65bdf 100644 --- a/com32/cmenu/libmenu/tui.c +++ b/com32/cmenu/libmenu/tui.c @@ -211,51 +211,6 @@ void getuserinput(char *stra, unsigned int size, unsigned int password, //////////////////////////////Box Stuff -// This order of numbers must match -// the values of BOX_TOPLEFT,... in the header file - -unsigned char SINSIN_CHARS[] = { 218, 192, 191, 217, //Corners - 196, 179, // Horiz and Vertical - 195, 180, 194, 193, 197 -}; // Connectors & Middle - -unsigned char DBLDBL_CHARS[] = { 201, 200, 187, 188, // Corners - 205, 186, // Horiz and Vertical - 199, 182, 203, 202, 206 -}; // Connectors & Middle - -unsigned char SINDBL_CHARS[] = { 214, 211, 183, 189, // Corners - 196, 186, // Horiz & Vert - 199, 182, 210, 208, 215 -}; // Connectors & Middle - -unsigned char DBLSIN_CHARS[] = { 213, 212, 184, 190, // Corners - 205, 179, // Horiz & Vert - 198, 181, 209, 207, 216 -}; // Connectors & Middle - -unsigned char *getboxchars(boxtype bt) -{ - switch (bt) { - case BOX_SINSIN: - return SINSIN_CHARS; - break; - case BOX_DBLDBL: - return DBLDBL_CHARS; - break; - case BOX_SINDBL: - return SINDBL_CHARS; - break; - case BOX_DBLSIN: - return DBLSIN_CHARS; - break; - default: - return SINSIN_CHARS; - break; - } - return SINSIN_CHARS; -} - // Draw box and lines void drawbox(const char top, const char left, const char bot, const char right, const char attr) |