* drop duplicate prototype for lib_get_sysinfo()
* fix delay handling in tiny curses keyboard driver * fix off by one error in video driver Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4473 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
e3f39b50cf
commit
131c0070a3
|
@ -179,7 +179,7 @@ static int curses_getchar(int delay)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (delay > 0) {
|
if (delay > 0) {
|
||||||
mdelay(100);
|
mdelay(1);
|
||||||
delay--;
|
delay--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,15 +195,17 @@ int wgetch(WINDOW *win)
|
||||||
{
|
{
|
||||||
int delay = -1;
|
int delay = -1;
|
||||||
|
|
||||||
if (_halfdelay || win->_delay)
|
if (_halfdelay)
|
||||||
delay = win->_delay ? 0 : _halfdelay;
|
delay = _halfdelay;
|
||||||
|
else
|
||||||
|
delay = win->_delay;
|
||||||
|
|
||||||
return curses_getchar(delay);
|
return curses_getchar(delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
int nodelay(WINDOW *win, NCURSES_BOOL flag)
|
int nodelay(WINDOW *win, NCURSES_BOOL flag)
|
||||||
{
|
{
|
||||||
win->_delay = flag ? 1 : 0;
|
win->_delay = flag ? 0 : -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ static void video_console_fixup_cursor(void)
|
||||||
if (cursory < 0)
|
if (cursory < 0)
|
||||||
cursory = 0;
|
cursory = 0;
|
||||||
|
|
||||||
if (cursorx > VIDEO_COLS) {
|
if (cursorx >= VIDEO_COLS) {
|
||||||
cursorx = 0;
|
cursorx = 0;
|
||||||
cursory++;
|
cursory++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,6 @@ struct sysinfo_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct sysinfo_t lib_sysinfo;
|
extern struct sysinfo_t lib_sysinfo;
|
||||||
void lib_get_sysinfo(void);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue