diff options
author | Sean D'Epagnier <[email protected]> | 2006-08-23 07:55:48 +0000 |
---|---|---|
committer | Sean D'Epagnier <[email protected]> | 2006-08-23 07:55:48 +0000 |
commit | bd3e6ec0668355460566fc46a5e871c50103db09 (patch) | |
tree | 9459c25f6f5fa0f48ca78717fa7e4e20cce08c63 /src/glut/fbdev/fbdev.c | |
parent | 43c9587ed48c315d44e5cc657a045e904a156265 (diff) |
VT switching now uses correct keys.
exiting when virtual screen size is larger than regular size doesn't corrupt screen.
colormap is reset when using stdin input on exit.
return is not reported as ctrl-m but '\r' as it should be
backspace keycode was incorrect and not working, fixed
Diffstat (limited to 'src/glut/fbdev/fbdev.c')
-rw-r--r-- | src/glut/fbdev/fbdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c index 10bc6eacc14..1c6cea0434e 100644 --- a/src/glut/fbdev/fbdev.c +++ b/src/glut/fbdev/fbdev.c @@ -117,6 +117,9 @@ static void Cleanup(void) /* restore original variable screen info */ if(FrameBufferFD != -1) { + OrigVarInfo.xoffset = 0; + OrigVarInfo.yoffset = 0; + if (ioctl(FrameBufferFD, FBIOPUT_VSCREENINFO, &OrigVarInfo)) fprintf(stderr, "ioctl(FBIOPUT_VSCREENINFO failed): %s\n", strerror(errno)); |