Adjust width of stdscr to exactly SCREEN_X. This fixes alignment issues due

to an extra space sent at end of each line, as well as a data corruption
issue, which could result in undefined color pairs being referenced.

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@3598 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ulf Jordan 2008-09-24 14:17:02 +00:00 committed by Jordan Crouse
parent 0f5379ce4e
commit 902ed76ec4
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ WINDOW *initscr(void)
// Speaker init? // Speaker init?
stdscr = newwin(SCREEN_Y, SCREEN_X + 1, 0, 0); stdscr = newwin(SCREEN_Y, SCREEN_X, 0, 0);
// TODO: curscr, newscr? // TODO: curscr, newscr?
werase(stdscr); werase(stdscr);