Added correct include files to files,
No longer modify cmap if the device is truecolor (messes up dual monitors with vt switching)
This commit is contained in:
@@ -571,7 +571,8 @@ void SetVideoMode(void)
|
||||
}
|
||||
|
||||
/* initialize colormap */
|
||||
LoadColorMap();
|
||||
if(FixedInfo.visual != FB_VISUAL_TRUECOLOR)
|
||||
LoadColorMap();
|
||||
}
|
||||
|
||||
void CreateBuffer()
|
||||
@@ -786,6 +787,7 @@ void glutDestroyWindow(int win)
|
||||
glFBDevDestroyContext(Context);
|
||||
glFBDevDestroyBuffer(Buffer);
|
||||
glFBDevDestroyVisual(Visual);
|
||||
|
||||
Visual = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user