diff options
author | Sean D'Epagnier <geckosenator@freedesktop.org> | 2006-11-21 09:35:49 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:03:34 +0100 |
commit | 25d5afb835fab9f5fe3b3ce56d4f8200becf6670 (patch) | |
tree | 96e85fc7f7e119339809e963f49e07b04fd02c1e /src/glut/fbdev/input.c | |
parent | 82ab8ad2057a7a8edad1e01f7ba463f2fca52457 (diff) | |
download | glut-25d5afb835fab9f5fe3b3ce56d4f8200becf6670.tar.gz |
Added correct include files to files, No longer modify cmap if the device is truecolor (messes up dual monitors with vt switching)
Diffstat (limited to 'src/glut/fbdev/input.c')
-rw-r--r-- | src/glut/fbdev/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glut/fbdev/input.c b/src/glut/fbdev/input.c index 2528a74..d09de22 100644 --- a/src/glut/fbdev/input.c +++ b/src/glut/fbdev/input.c @@ -53,7 +53,7 @@ int GpmMouse; #endif -int CurrentVT; +int CurrentVT = 0; int ConsoleFD = -1; int KeyboardModifiers; @@ -529,14 +529,14 @@ static void VTSwitchHandler(int sig) /* this is a hack to turn the cursor off */ ioctl(FrameBufferFD, FBIOPUT_VSCREENINFO, &VarInfo); - RestoreColorMap(); + if(FixedInfo.visual != FB_VISUAL_TRUECOLOR) + RestoreColorMap(); Active = 1; Visible = 1; VisibleSwitch = 1; Redisplay = 1; - break; } } |