From 0570fcfd93a29dcd9d41bc709edd78a7c1b4e1e7 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Tue, 21 Nov 2006 09:35:49 +0000 Subject: Added correct include files to files, No longer modify cmap if the device is truecolor (messes up dual monitors with vt switching) --- src/glut/fbdev/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/glut/fbdev/input.c') diff --git a/src/glut/fbdev/input.c b/src/glut/fbdev/input.c index 2528a74a10..d09de22ed7 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; } } -- cgit v1.2.3