From bd3e6ec0668355460566fc46a5e871c50103db09 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Wed, 23 Aug 2006 07:55:48 +0000 Subject: 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 --- src/glut/fbdev/fbdev.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glut/fbdev/fbdev.c') diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c index 10bc6eacc1..1c6cea0434 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)); -- cgit v1.2.3