summaryrefslogtreecommitdiffstats
path: root/src/glut/fbdev/fbdev.c
diff options
context:
space:
mode:
authorSean D'Epagnier <geckosenator@freedesktop.org>2006-08-23 07:55:48 +0000
committerSean D'Epagnier <geckosenator@freedesktop.org>2006-08-23 07:55:48 +0000
commitbd3e6ec0668355460566fc46a5e871c50103db09 (patch)
tree9459c25f6f5fa0f48ca78717fa7e4e20cce08c63 /src/glut/fbdev/fbdev.c
parent43c9587ed48c315d44e5cc657a045e904a156265 (diff)
downloadexternal_mesa3d-bd3e6ec0668355460566fc46a5e871c50103db09.zip
external_mesa3d-bd3e6ec0668355460566fc46a5e871c50103db09.tar.gz
external_mesa3d-bd3e6ec0668355460566fc46a5e871c50103db09.tar.bz2
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c
index 10bc6ea..1c6cea0 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));