Default to 16bit colors.

This commit is contained in:
Dabb 2001-02-17 12:24:39 +00:00
parent fdc8bedd2e
commit 6356c8e596

View file

@ -742,13 +742,17 @@ bSetupPixelFormat (HDC hDC)
PIXELFORMATDESCRIPTOR pfd ; PIXELFORMATDESCRIPTOR pfd ;
int pixelformat; int pixelformat;
char test[1024];
memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR)); memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR));
pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR); pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
pfd.nVersion = 1; pfd.nVersion = 1;
pfd.dwFlags = PFD_DOUBLEBUFFER | PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW; pfd.dwFlags = PFD_DOUBLEBUFFER | PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW;
pfd.iPixelType = PFD_TYPE_RGBA; pfd.iPixelType = PFD_TYPE_RGBA;
// pfd.cColorBits = 24;
pfd.cColorBits = modelist[vid_default].bpp; if (!modelist[vid_default].bpp) pfd.cColorBits = 16;
else pfd.cColorBits = modelist[vid_default].bpp;
pfd.cDepthBits = 32; pfd.cDepthBits = 32;
pfd.iLayerType = PFD_MAIN_PLANE; pfd.iLayerType = PFD_MAIN_PLANE;